提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.controller.admin.logger.vo.apiaccesslog; |
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.system.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 ApiAccessLogRespVO { |
|
17 |
|
|
18 |
@Schema(description = "日志主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
19 |
@ExcelProperty("日志主键") |
|
20 |
private Long 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 Long userId; |
|
29 |
|
|
30 |
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2") |
|
31 |
@ExcelProperty(value = "用户类型", converter = DictConvert.class) |
|
32 |
@DictFormat(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 = "/xxx/yyy") |
|
44 |
@ExcelProperty("请求地址") |
|
45 |
private String requestUrl; |
|
46 |
|
|
47 |
@Schema(description = "请求参数") |
|
48 |
@ExcelProperty("请求参数") |
|
49 |
private String requestParams; |
|
50 |
|
|
51 |
@Schema(description = "响应结果") |
|
52 |
@ExcelProperty("响应结果") |
|
53 |
private String responseBody; |
|
54 |
|
|
55 |
@Schema(description = "用户 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "127.0.0.1") |
|
56 |
@ExcelProperty("用户 IP") |
|
57 |
private String userIp; |
|
58 |
|
|
59 |
@Schema(description = "浏览器 UA", requiredMode = Schema.RequiredMode.REQUIRED, example = "Mozilla/5.0") |
|
60 |
@ExcelProperty("浏览器 UA") |
|
61 |
private String userAgent; |
|
62 |
|
|
63 |
@Schema(description = "操作模块", requiredMode = Schema.RequiredMode.REQUIRED, example = "商品模块") |
|
64 |
@ExcelProperty("操作模块") |
|
65 |
private String operateModule; |
|
66 |
|
|
67 |
@Schema(description = "操作名", requiredMode = Schema.RequiredMode.REQUIRED, example = "创建商品") |
|
68 |
@ExcelProperty("操作名") |
|
69 |
private String operateName; |
|
70 |
|
|
71 |
@Schema(description = "操作分类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
72 |
@ExcelProperty(value = "操作分类", converter = DictConvert.class) |
|
73 |
@DictFormat(com.iailab.module.infra.enums.DictTypeConstants.OPERATE_TYPE) |
|
74 |
private Integer operateType; |
|
75 |
|
|
76 |
@Schema(description = "开始请求时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
77 |
@ExcelProperty("开始请求时间") |
|
78 |
private LocalDateTime beginTime; |
|
79 |
|
|
80 |
@Schema(description = "结束请求时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
81 |
@ExcelProperty("结束请求时间") |
|
82 |
private LocalDateTime endTime; |
|
83 |
|
|
84 |
@Schema(description = "执行时长", requiredMode = Schema.RequiredMode.REQUIRED, example = "100") |
|
85 |
@ExcelProperty("执行时长") |
|
86 |
private Integer duration; |
|
87 |
|
|
88 |
@Schema(description = "结果码", requiredMode = Schema.RequiredMode.REQUIRED, example = "0") |
|
89 |
@ExcelProperty("结果码") |
|
90 |
private Integer resultCode; |
|
91 |
|
|
92 |
@Schema(description = "结果提示", example = "iailab,牛逼!") |
|
93 |
@ExcelProperty("结果提示") |
|
94 |
private String resultMsg; |
|
95 |
|
|
96 |
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
97 |
private LocalDateTime createTime; |
|
98 |
|
|
99 |
} |