提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.controller.admin.logger.vo.apierrorlog; |
H |
2 |
|
|
3 |
import com.iailab.framework.excel.core.annotations.DictFormat; |
|
4 |
import com.iailab.framework.excel.core.convert.DictConvert; |
|
5 |
import com.iailab.module.infra.enums.DictTypeConstants; |
|
6 |
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
|
7 |
import com.alibaba.excel.annotation.ExcelProperty; |
|
8 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
9 |
import lombok.Data; |
|
10 |
|
|
11 |
import java.time.LocalDateTime; |
|
12 |
|
|
13 |
@Schema(description = "管理后台 - API 错误日志 Response VO") |
|
14 |
@Data |
|
15 |
@ExcelIgnoreUnannotated |
|
16 |
public class ApiErrorLogRespVO { |
|
17 |
|
|
18 |
@Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
19 |
@ExcelProperty("编号") |
|
20 |
private Integer id; |
|
21 |
|
|
22 |
@Schema(description = "链路追踪编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "66600cb6-7852-11eb-9439-0242ac130002") |
|
23 |
@ExcelProperty("链路追踪编号") |
|
24 |
private String traceId; |
|
25 |
|
|
26 |
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "666") |
|
27 |
@ExcelProperty("用户编号") |
|
28 |
private Integer userId; |
|
29 |
|
|
30 |
@Schema(description = "用户类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
31 |
@ExcelProperty(value = "用户类型", converter = DictConvert.class) |
|
32 |
@DictFormat(com.iailab.module.system.enums.DictTypeConstants.USER_TYPE) |
|
33 |
private Integer userType; |
|
34 |
|
|
35 |
@Schema(description = "应用名", requiredMode = Schema.RequiredMode.REQUIRED, example = "dashboard") |
|
36 |
@ExcelProperty("应用名") |
|
37 |
private String applicationName; |
|
38 |
|
|
39 |
@Schema(description = "请求方法名", requiredMode = Schema.RequiredMode.REQUIRED, example = "GET") |
|
40 |
@ExcelProperty("请求方法名") |
|
41 |
private String requestMethod; |
|
42 |
|
|
43 |
@Schema(description = "请求地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "/xx/yy") |
|
44 |
@ExcelProperty("请求地址") |
|
45 |
private String requestUrl; |
|
46 |
|
|
47 |
@Schema(description = "请求参数", requiredMode = Schema.RequiredMode.REQUIRED) |
|
48 |
@ExcelProperty("请求参数") |
|
49 |
private String requestParams; |
|
50 |
|
|
51 |
@Schema(description = "用户 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "127.0.0.1") |
|
52 |
@ExcelProperty("用户 IP") |
|
53 |
private String userIp; |
|
54 |
|
|
55 |
@Schema(description = "浏览器 UA", requiredMode = Schema.RequiredMode.REQUIRED, example = "Mozilla/5.0") |
|
56 |
@ExcelProperty("浏览器 UA") |
|
57 |
private String userAgent; |
|
58 |
|
|
59 |
@Schema(description = "异常发生时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
60 |
@ExcelProperty("异常发生时间") |
|
61 |
private LocalDateTime exceptionTime; |
|
62 |
|
|
63 |
@Schema(description = "异常名", requiredMode = Schema.RequiredMode.REQUIRED) |
|
64 |
@ExcelProperty("异常名") |
|
65 |
private String exceptionName; |
|
66 |
|
|
67 |
@Schema(description = "异常导致的消息", requiredMode = Schema.RequiredMode.REQUIRED) |
|
68 |
@ExcelProperty("异常导致的消息") |
|
69 |
private String exceptionMessage; |
|
70 |
|
|
71 |
@Schema(description = "异常导致的根消息", requiredMode = Schema.RequiredMode.REQUIRED) |
|
72 |
@ExcelProperty("异常导致的根消息") |
|
73 |
private String exceptionRootCauseMessage; |
|
74 |
|
|
75 |
@Schema(description = "异常的栈轨迹", requiredMode = Schema.RequiredMode.REQUIRED) |
|
76 |
@ExcelProperty("异常的栈轨迹") |
|
77 |
private String exceptionStackTrace; |
|
78 |
|
|
79 |
@Schema(description = "异常发生的类全名", requiredMode = Schema.RequiredMode.REQUIRED) |
|
80 |
@ExcelProperty("异常发生的类全名") |
|
81 |
private String exceptionClassName; |
|
82 |
|
|
83 |
@Schema(description = "异常发生的类文件", requiredMode = Schema.RequiredMode.REQUIRED) |
|
84 |
@ExcelProperty("异常发生的类文件") |
|
85 |
private String exceptionFileName; |
|
86 |
|
|
87 |
@Schema(description = "异常发生的方法名", requiredMode = Schema.RequiredMode.REQUIRED) |
|
88 |
@ExcelProperty("异常发生的方法名") |
|
89 |
private String exceptionMethodName; |
|
90 |
|
|
91 |
@Schema(description = "异常发生的方法所在行", requiredMode = Schema.RequiredMode.REQUIRED) |
|
92 |
@ExcelProperty("异常发生的方法所在行") |
|
93 |
private Integer exceptionLineNumber; |
|
94 |
|
|
95 |
@Schema(description = "处理状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "0") |
|
96 |
@ExcelProperty(value = "处理状态", converter = DictConvert.class) |
|
97 |
@DictFormat(DictTypeConstants.API_ERROR_LOG_PROCESS_STATUS) |
|
98 |
private Integer processStatus; |
|
99 |
|
|
100 |
@Schema(description = "处理时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
101 |
@ExcelProperty("处理时间") |
|
102 |
private LocalDateTime processTime; |
|
103 |
|
|
104 |
@Schema(description = "处理用户编号", example = "233") |
|
105 |
@ExcelProperty("处理用户编号") |
|
106 |
private Integer processUserId; |
|
107 |
|
|
108 |
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
109 |
@ExcelProperty("创建时间") |
|
110 |
private LocalDateTime createTime; |
|
111 |
|
|
112 |
} |