package org.jeecg.modules.test.sharding.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
import lombok.experimental.Accessors;
|
import org.jeecg.common.aspect.annotation.Dict;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* 系统日志表
|
* @author: zyf
|
* @date: 2022/04/21
|
*/
|
@Data
|
@TableName("sys_log")
|
public class ShardingSysLog implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* id
|
*/
|
@TableId(type = IdType.ASSIGN_ID)
|
private String id;
|
|
/**
|
* 创建人
|
*/
|
private String createBy;
|
|
/**
|
* 创建时间
|
*/
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
private Date createTime;
|
|
/**
|
* 更新人
|
*/
|
private String updateBy;
|
|
/**
|
* 更新时间
|
*/
|
private Date updateTime;
|
|
/**
|
* 耗时
|
*/
|
private Long costTime;
|
|
/**
|
* IP
|
*/
|
private String ip;
|
|
/**
|
* 请求参数
|
*/
|
private String requestParam;
|
|
/**
|
* 请求类型
|
*/
|
private String requestType;
|
|
/**
|
* 请求路径
|
*/
|
private String requestUrl;
|
/**
|
* 请求方法
|
*/
|
private String method;
|
|
/**
|
* 操作人用户名称
|
*/
|
private String username;
|
/**
|
* 操作人用户账户
|
*/
|
private String userid;
|
/**
|
* 操作详细日志
|
*/
|
private String logContent;
|
|
/**
|
* 日志类型(1登录日志,2操作日志)
|
*/
|
@Dict(dicCode = "log_type")
|
private Integer logType;
|
|
/**
|
* 操作类型(1查询,2添加,3修改,4删除,5导入,6导出)
|
*/
|
@Dict(dicCode = "operate_type")
|
private Integer operateType;
|
|
}
|