1+ package io .github .opensabre .sysadmin .model .form ;
2+
3+ import io .github .opensabre .boot .annotations .OperationType ;
4+ import io .github .opensabre .common .web .entity .form .BaseForm ;
5+ import io .github .opensabre .sysadmin .model .po .AuditLog ;
6+ import io .swagger .v3 .oas .annotations .media .Schema ;
7+ import jakarta .validation .constraints .NotBlank ;
8+ import jakarta .validation .constraints .NotNull ;
9+ import lombok .Data ;
10+ import lombok .EqualsAndHashCode ;
11+
12+ import java .util .Date ;
13+
14+ @ Data
15+ @ Schema
16+ @ EqualsAndHashCode (callSuper = true )
17+ public class AuditLogForm extends BaseForm <AuditLog > {
18+
19+ @ Schema (title = "操作类型" )
20+ @ NotNull (message = "操作类型不能为空" )
21+ private OperationType operationType ;
22+
23+ @ Schema (title = "操作时间" )
24+ @ NotNull (message = "操作时间不能为空" )
25+ private Date operationTime ;
26+
27+ @ Schema (title = "操作人用户名" )
28+ @ NotBlank (message = "操作人用户名不能为空" )
29+ private String operatorUsername ;
30+
31+ @ Schema (title = "操作描述" )
32+ private String description ;
33+
34+ @ Schema (title = "操作模块" )
35+ @ NotBlank (message = "操作模块不能为空" )
36+ private String module ;
37+
38+ @ Schema (title = "操作IP地址" )
39+ private String clientIp ;
40+
41+ @ Schema (title = "操作终端的User-Agent" )
42+ private String userAgent ;
43+
44+ @ Schema (title = "请求方法,GET/POST/PUT/DELETE" )
45+ private String requestMethod ;
46+
47+ @ Schema (title = "请求URL" )
48+ private String requestUrl ;
49+
50+ @ Schema (title = "请求参数报文" )
51+ private String request ;
52+
53+ @ Schema (title = "请求返回报文" )
54+ private String response ;
55+
56+ @ Schema (title = "错误信息" )
57+ private String errorMessage ;
58+
59+ @ Schema (title = "执行时间(毫秒)" )
60+ private Long executionTime ;
61+
62+ @ Schema (title = "操作目标关键值" )
63+ private String targetKey ;
64+ }
0 commit comments