整合提交
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
|
||||
|
||||
package com.weather.modules.log.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 异常日志
|
||||
*
|
||||
* @author 123
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Data
|
||||
@Schema(title = "异常日志")
|
||||
public class SysLogErrorDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(title = "id")
|
||||
private Long id;
|
||||
@Schema(title = "请求URI")
|
||||
private String requestUri;
|
||||
@Schema(title = "请求方式")
|
||||
private String requestMethod;
|
||||
@Schema(title = "请求参数")
|
||||
private String requestParams;
|
||||
@Schema(title = "用户代理")
|
||||
private String userAgent;
|
||||
@Schema(title = "操作IP")
|
||||
private String ip;
|
||||
@Schema(title = "异常信息")
|
||||
private String errorInfo;
|
||||
@Schema(title = "创建时间")
|
||||
private Date createDate;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
|
||||
|
||||
package com.weather.modules.log.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 登录日志
|
||||
*
|
||||
* @author 123
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Data
|
||||
@Schema(title = "登录日志")
|
||||
public class SysLogLoginDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(title = "id")
|
||||
private Long id;
|
||||
|
||||
@Schema(title = "用户操作 0:用户登录 1:用户退出")
|
||||
private Integer operation;
|
||||
|
||||
@Schema(title = "状态 0:失败 1:成功 2:账号已锁定")
|
||||
private Integer status;
|
||||
|
||||
@Schema(title = "用户代理")
|
||||
private String userAgent;
|
||||
|
||||
@Schema(title = "操作IP")
|
||||
private String ip;
|
||||
|
||||
@Schema(title = "用户名")
|
||||
private String creatorName;
|
||||
|
||||
@Schema(title = "创建时间")
|
||||
private Date createDate;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
|
||||
|
||||
package com.weather.modules.log.dto;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 操作日志
|
||||
*
|
||||
* @author 123
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Data
|
||||
@Schema(title = "操作日志")
|
||||
public class SysLogOperationDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Schema(title = "id")
|
||||
private Long id;
|
||||
|
||||
@Schema(title = "用户操作")
|
||||
private String operation;
|
||||
|
||||
@Schema(title = "请求URI")
|
||||
private String requestUri;
|
||||
|
||||
@Schema(title = "请求方式")
|
||||
private String requestMethod;
|
||||
|
||||
@Schema(title = "请求参数")
|
||||
private String requestParams;
|
||||
|
||||
@Schema(title = "请求时长(毫秒)")
|
||||
private Integer requestTime;
|
||||
|
||||
@Schema(title = "用户代理")
|
||||
private String userAgent;
|
||||
|
||||
@Schema(title = "操作IP")
|
||||
private String ip;
|
||||
|
||||
@Schema(title = "状态 0:失败 1:成功")
|
||||
private Integer status;
|
||||
|
||||
@Schema(title = "用户名")
|
||||
private String creatorName;
|
||||
|
||||
@Schema(title = "创建时间")
|
||||
private Date createDate;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user