提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.api.logger.dto; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import javax.validation.constraints.NotEmpty; |
|
7 |
import javax.validation.constraints.NotNull; |
|
8 |
|
|
9 |
@Schema(name = "RPC 服务 - 系统操作日志 Create Request DTO") |
|
10 |
@Data |
|
11 |
public class OperateLogCreateReqDTO { |
|
12 |
|
|
13 |
@Schema(description = "链路追踪编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "89aca178-a370-411c-ae02-3f0d672be4ab") |
|
14 |
private String traceId; |
|
15 |
|
|
16 |
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "666") |
|
17 |
@NotNull(message = "用户编号不能为空") |
|
18 |
private Long userId; |
|
19 |
@Schema(description = "用户类型,参见 UserTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "2" ) |
|
20 |
@NotNull(message = "用户类型不能为空") |
|
21 |
private Integer userType; |
|
22 |
@Schema(description = "操作模块类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "订单") |
|
23 |
@NotEmpty(message = "操作模块类型不能为空") |
|
24 |
private String type; |
|
25 |
@Schema(description = "操作名", requiredMode = Schema.RequiredMode.REQUIRED, example = "创建订单") |
|
26 |
@NotEmpty(message = "操作名不能为空") |
|
27 |
private String subType; |
|
28 |
@Schema(description = "操作模块业务编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "188") |
|
29 |
@NotNull(message = "操作模块业务编号不能为空") |
|
30 |
private Long bizId; |
|
31 |
@Schema(description = "操作内容", requiredMode = Schema.RequiredMode.REQUIRED, |
|
32 |
example = "修改编号为 1 的用户信息,将性别从男改成女,将姓名从平台改成源码") |
|
33 |
@NotEmpty(message = "操作内容不能为空") |
|
34 |
private String action; |
|
35 |
@Schema(description = "拓展字段", example = "{\"orderId\": \"1\"}") |
|
36 |
private String extra; |
|
37 |
|
|
38 |
@Schema(description = "请求方法名", requiredMode = Schema.RequiredMode.REQUIRED, example = "GET") |
|
39 |
@NotEmpty(message = "请求方法名不能为空") |
|
40 |
private String requestMethod; |
|
41 |
@Schema(description = "请求地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "/order/get") |
|
42 |
@NotEmpty(message = "请求地址不能为空") |
|
43 |
private String requestUrl; |
|
44 |
@Schema(description = "用户 IP", requiredMode = Schema.RequiredMode.REQUIRED, example = "127.0.0.1") |
|
45 |
@NotEmpty(message = "用户 IP 不能为空") |
|
46 |
private String userIp; |
|
47 |
@Schema(description = "浏览器 UserAgent", requiredMode = Schema.RequiredMode.REQUIRED, example = "Mozilla/5.0") |
|
48 |
@NotEmpty(message = "浏览器 UA 不能为空") |
|
49 |
private String userAgent; |
|
50 |
|
|
51 |
} |