审计日志相关代码提交

This commit is contained in:
2022-07-12 16:10:50 +08:00
parent 79b6ade43a
commit d00bd4bf0c
9 changed files with 286 additions and 6 deletions

View File

@@ -0,0 +1,66 @@
package com.njcn.system.pojo.po;
import com.baomidou.mybatisplus.annotation.TableName;
import com.njcn.db.bo.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author hongawen
* @version 1.0.0
* @date 2022年07月12日 14:45
*/
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_user_log")
public class UserLog extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* 事件日志Id
*/
private String id;
/**
* 用户已登录:用户名
* 用户未登录:登录名
*/
private String userName;
/**
* 操作Ip
*/
private String ip;
/**
* 操作内容
*/
private String operate;
/**
* 操作类型 比如:查询、新增、删除等等
*/
private String operateType;
/**
* 操作结果 0.失败 1.成功
*/
private Integer result;
/**
* 严重度 0.普通 1.中等 2.严重
*/
private Integer level;
/**
* 事件类型 0.业务事件 1.系统事件
*/
private String type;
/**
* 模块名
*/
private String serviceName;
}