记录系统内用户的操作日志。

1.日志类

public class SysLog {
    /**
     * 主键
     */
    private String id;
    /**
     * 操作开始时间
     */
    private Date createTime;
    /**
     * 操作结束时间
     */
    private Date endTime;
    /**
     * 执行耗时
     */
    private long excuteTime;
    /**
     * 接口地址
     */
    private String url;
    /**
     * 请求参数
     */
    private String params;
    /**
     * 操作结果代码
     */
    private String code;
    /**
     * 接口名
     */
    private String targetName;
    /**
     * 接口方法
     */
    private String methodName;
    /**
     * 业务类型
     */
    private String businessType;
    /**
     * 操作名称
     */
    private String operationName;
    /**
     * 异常原因
     */
    private String reason;
    /**
     * 请求ip
     */
    private String ip;
    /**
     * 操作人userid
     */
    private String userId;
    /**
     * 操作人名称
     */
    private String userName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getTargetName() {
        return targetName;
    }

    public void setTargetName(String targetName) {
        this.targetName = targetName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getOperationName() {
        return operationName;
    }

    public void setOperationName(String operationName) {
        this.operationName = operationName;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public long getExcuteTime() {
        return excuteTime;
    }

    public void setExcuteTime(long excuteTime) {
        this.excuteTime = excuteTime;
    }

    @Override
    public String toString() {
        return "SysLog{" +
                "id='" + id + '\'' +
                ", createTime=" + createTime +
                ", endTime=" + endTime +
                ", excuteTime=" + excuteTime +
                ", url='" + url + '\'' +
                ", params='" + params + '\'' +
                ", code='" + code + '\'' +
                ", targetName='" + targetName + '\'' +
                ", methodName='" + methodName + '\'' +
                ", businessType='" + businessType + '\'' +
                ", operationName='" + operationName + '\'' +
                ", reason='" + reason + '\'' +
                ", ip='" + ip + '\'' +
                ", userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                '}';
    }
}
View Code

相关文章:

  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2022-03-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-05
  • 2022-12-23
  • 2022-02-05
  • 2021-06-21
  • 2021-08-21
  • 2021-05-26
相关资源
相似解决方案