提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.logger.vo.operatelog; |
H |
2 |
|
|
3 |
import com.iailab.module.system.dal.dataobject.user.AdminUserDO; |
|
4 |
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
|
5 |
import com.alibaba.excel.annotation.ExcelProperty; |
|
6 |
import com.fhs.core.trans.anno.Trans; |
|
7 |
import com.fhs.core.trans.constant.TransType; |
|
8 |
import com.fhs.core.trans.vo.VO; |
|
9 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
10 |
import lombok.Data; |
|
11 |
|
|
12 |
import javax.validation.constraints.NotEmpty; |
|
13 |
import java.time.LocalDateTime; |
|
14 |
|
|
15 |
@Schema(description = "管理后台 - 操作日志 Response VO") |
|
16 |
@Data |
|
17 |
@ExcelIgnoreUnannotated |
|
18 |
public class OperateLogRespVO implements VO { |
|
19 |
|
|
20 |
@Schema(description = "日志编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
21 |
@ExcelProperty("日志编号") |
|
22 |
private Long id; |
|
23 |
|
|
24 |
@Schema(description = "链路追踪编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "89aca178-a370-411c-ae02-3f0d672be4ab") |
|
25 |
private String traceId; |
|
26 |
|
|
27 |
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
28 |
@Trans(type = TransType.SIMPLE, target = AdminUserDO.class, fields = "nickname", ref = "userName") |
|
29 |
private Long userId; |
|
30 |
@Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "iailab") |
|
31 |
@ExcelProperty("操作人") |
|
32 |
private String userName; |
|
33 |
|
|
34 |
@Schema(description = "操作模块类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "订单") |
|
35 |
@ExcelProperty("操作模块类型") |
|
36 |
private String type; |
|
37 |
|
|
38 |
@Schema(description = "操作名", requiredMode = Schema.RequiredMode.REQUIRED, example = "创建订单") |
|
39 |
@ExcelProperty("操作名") |
|
40 |
private String subType; |
|
41 |
|
|
42 |
@Schema(description = "操作模块业务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
43 |
@ExcelProperty("操作模块业务编号") |
|
44 |
private Long bizId; |
|
45 |
|
|
46 |
@Schema(description = "操作明细", example = "修改编号为 1 的用户信息,将性别从男改成女,将姓名从平台改成源码。") |
|
47 |
private String action; |
|
48 |
|
|
49 |
@Schema(description = "拓展字段", example = "{'orderId': 1}") |
|
50 |
private String extra; |
|
51 |
|
|
52 |
@Schema(description = "请求方法名", requiredMode = Schema.RequiredMode.REQUIRED, example = "GET") |
|
53 |
@NotEmpty(message = "请求方法名不能为空") |
|
54 |
private String requestMethod; |
|
55 |
|
|
56 |
@Schema(description = "请求地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "/xxx/yyy") |
|
57 |
private String requestUrl; |
|
58 |
|
|
59 |
@Schema(description = "用户 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "127.0.0.1") |
|
60 |
private String userIp; |
|
61 |
|
|
62 |
@Schema(description = "浏览器 UserAgent", requiredMode = Schema.RequiredMode.REQUIRED, example = "Mozilla/5.0") |
|
63 |
private String userAgent; |
|
64 |
|
|
65 |
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
66 |
private LocalDateTime createTime; |
|
67 |
|
|
68 |
} |