UserEventDo.java
3.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
package com.diligrp.assistant.logging.model;
import com.diligrp.assistant.shared.domain.BaseDo;
import java.time.LocalDateTime;
public class UserEventDo extends BaseDo {
// 事件分组ID
private String groupId;
// 系统模块ID
private String moduleId;
// 事件动作
private String action;
// 操作对象ID
private String objectId;
// 操作对象
private String objectName;
// 事件描述
private String event;
// 发生时间
private LocalDateTime when;
// 操作人ID
private String userId;
// 操作人
private String userName;
// 事件来源-IP/MAC
private String source;
public String getGroupId() {
return groupId;
}
public void setGroupId(String groupId) {
this.groupId = groupId;
}
public String getModuleId() {
return moduleId;
}
public void setModuleId(String moduleId) {
this.moduleId = moduleId;
}
public String getAction() {
return action;
}
public void setAction(String action) {
this.action = action;
}
public String getObjectId() {
return objectId;
}
public void setObjectId(String objectId) {
this.objectId = objectId;
}
public String getObjectName() {
return objectName;
}
public void setObjectName(String objectName) {
this.objectName = objectName;
}
public String getEvent() {
return event;
}
public void setEvent(String event) {
this.event = event;
}
public LocalDateTime getWhen() {
return when;
}
public void setWhen(LocalDateTime when) {
this.when = when;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public static Builder builder() {
return new UserEventDo().new Builder();
}
public class Builder {
public Builder groupId(String groupId) {
UserEventDo.this.groupId = groupId;
return this;
}
public Builder moduleId(String moduleId) {
UserEventDo.this.moduleId = moduleId;
return this;
}
public Builder action(String action) {
UserEventDo.this.action = action;
return this;
}
public Builder objectId(String objectId) {
UserEventDo.this.objectId = objectId;
return this;
}
public Builder objectName(String objectName) {
UserEventDo.this.objectName = objectName;
return this;
}
public Builder event(String event) {
UserEventDo.this.event = event;
return this;
}
public Builder when(LocalDateTime when) {
UserEventDo.this.when = when;
return this;
}
public Builder userId(String userId) {
UserEventDo.this.userId = userId;
return this;
}
public Builder userName(String userName) {
UserEventDo.this.userName = userName;
return this;
}
public Builder source(String source) {
UserEventDo.this.source = source;
return this;
}
public Builder createdTime(LocalDateTime createdTime) {
UserEventDo.this.createdTime = createdTime;
return this;
}
public UserEventDo build() {
return UserEventDo.this;
}
}
}