whyclxw
2 天以前 3e2f537e80f51948969de2a5b1b82292c0aac550
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
49
50
51
52
package com.whyc.pojo.db_user;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
 
import java.util.Date;
 
@Data
@ToString
@TableName(schema = "db_user",value = "tb_user_log")
public class UserLog {
 
    private Integer id;
    @ApiModelProperty(value = "业务级别:1-系统,2-业务")
    private Integer category;
 
    /**
     * 时间类型持续迭代中,请查看枚举类
     * {@link com.whyc.constant.UserLogTypeEnum}
     */
    @ApiModelProperty(value = "事件类型")
    private Integer type;
    @ApiModelProperty(value = "执行的操作")
    private String message;
    @ApiModelProperty(value = "操作的详细参数")
    private String messageDetail;
    @ApiModelProperty(value = "用户id")
    private Integer userId;
    @ApiModelProperty(value = "用户名")
    private String userName;
    @ApiModelProperty(value = "终端ip")
    private String terminalIp;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date createTime;
 
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    @TableField(exist = false)
    private Date endTime;
    @TableField(exist = false)
    private String categoryName;
    @TableField(exist = false)
    private String typeName;
 
}