whyclxw
2025-05-12 6893db726914cfbc57910831e7c3d4693e43fe01
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
package com.whyc.pojo.db_user;
 
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
 
import java.util.Date;
 
/**
 * CREATE TABLE `db_power_intelligence`.`tb_user_log` (
 *   `id` INT NOT NULL AUTO_INCREMENT,
 *   `category` INT NOT NULL COMMENT '业务级别:1-系统,2-业务',
 *   `type` INT NOT NULL COMMENT '事件类型',
 *   `message` VARCHAR(45) NULL COMMENT '执行的操作',
 *   `message_detail` TEXT NULL COMMENT '操作的详细参数',
 *   `user_id` INT NOT NULL,
 *   `user_name` VARCHAR(45) NOT NULL,
 *   `terminal_ip` VARCHAR(45) NULL,
 *   `create_time` DATETIME NOT NULL,
 *   PRIMARY KEY (`id`))
 * COMMENT = '涵盖所有用户的安全审计日志,保存所有的重要事件';
 */
@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 = "创建时间")
    private Date createTime;
 
}