BaseEntity.java
1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.huaheng.pc.common.entity;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 基本实体类
*/
@Data
@ApiModel(value = "BseEntity")
public class BaseEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 创建时间
*/
@TableField(value = "created", fill = FieldFill.INSERT)
@ApiModelProperty(value="创建时间")
private Date created;
/**
* 创建用户
*/
@TableField(value = "createdBy", fill = FieldFill.INSERT_UPDATE)
@ApiModelProperty(value="创建用户")
private String createdBy;
/**
* 更新时间
*/
@TableField(value = "lastUpdated", fill = FieldFill.INSERT)
@ApiModelProperty(value="更新时间")
private Date lastUpdated;
/**
* 更新用户
*/
@TableField(value = "lastUpdatedBy", fill = FieldFill.INSERT_UPDATE)
@ApiModelProperty(value="更新用户")
private String lastUpdatedBy;
}