提交 | 用户 | 时间
|
1ac2bc
|
1 |
package cn.stylefeng.guns.sys.modular.rest.entity; |
懒 |
2 |
|
|
3 |
import com.baomidou.mybatisplus.annotation.*; |
|
4 |
|
|
5 |
import java.io.Serializable; |
|
6 |
import java.util.Date; |
|
7 |
|
|
8 |
/** |
|
9 |
* <p> |
|
10 |
* 管理员表 |
|
11 |
* </p> |
|
12 |
* |
|
13 |
* @author stylefeng |
|
14 |
* @since 2019-04-01 |
|
15 |
*/ |
|
16 |
@TableName("sys_user") |
|
17 |
public class RestUser implements Serializable { |
|
18 |
|
|
19 |
private static final long serialVersionUID = 1L; |
|
20 |
|
|
21 |
/** |
|
22 |
* 主键id |
|
23 |
*/ |
|
24 |
@TableId(value = "user_id", type = IdType.ID_WORKER) |
|
25 |
private Long userId; |
|
26 |
|
|
27 |
/** |
|
28 |
* 头像 |
|
29 |
*/ |
|
30 |
@TableField("avatar") |
|
31 |
private String avatar; |
|
32 |
|
|
33 |
/** |
|
34 |
* 账号 |
|
35 |
*/ |
|
36 |
@TableField("account") |
|
37 |
private String account; |
|
38 |
|
|
39 |
/** |
|
40 |
* 密码 |
|
41 |
*/ |
|
42 |
@TableField("password") |
|
43 |
private String password; |
|
44 |
|
|
45 |
/** |
|
46 |
* md5密码盐 |
|
47 |
*/ |
|
48 |
@TableField("salt") |
|
49 |
private String salt; |
|
50 |
|
|
51 |
/** |
|
52 |
* 名字 |
|
53 |
*/ |
|
54 |
@TableField("name") |
|
55 |
private String name; |
|
56 |
|
|
57 |
/** |
|
58 |
* 生日 |
|
59 |
*/ |
|
60 |
@TableField("birthday") |
|
61 |
private Date birthday; |
|
62 |
|
|
63 |
/** |
|
64 |
* 性别(字典) |
|
65 |
*/ |
|
66 |
@TableField("sex") |
|
67 |
private String sex; |
|
68 |
|
|
69 |
/** |
|
70 |
* 电子邮件 |
|
71 |
*/ |
|
72 |
@TableField("email") |
|
73 |
private String email; |
|
74 |
|
|
75 |
/** |
|
76 |
* 电话 |
|
77 |
*/ |
|
78 |
@TableField("phone") |
|
79 |
private String phone; |
|
80 |
|
|
81 |
/** |
|
82 |
* 角色id(多个逗号隔开) |
|
83 |
*/ |
|
84 |
@TableField("role_id") |
|
85 |
private String roleId; |
|
86 |
|
|
87 |
/** |
|
88 |
* 部门id(多个逗号隔开) |
|
89 |
*/ |
|
90 |
@TableField("dept_id") |
|
91 |
private Long deptId; |
|
92 |
|
|
93 |
/** |
|
94 |
* 状态(字典) |
|
95 |
*/ |
|
96 |
@TableField("status") |
|
97 |
private String status; |
|
98 |
|
|
99 |
/** |
|
100 |
* 创建时间 |
|
101 |
*/ |
|
102 |
@TableField(value = "create_time", fill = FieldFill.INSERT) |
|
103 |
private Date createTime; |
|
104 |
|
|
105 |
/** |
|
106 |
* 创建人 |
|
107 |
*/ |
|
108 |
@TableField(value = "create_user", fill = FieldFill.INSERT) |
|
109 |
private Long createUser; |
|
110 |
|
|
111 |
/** |
|
112 |
* 更新时间 |
|
113 |
*/ |
|
114 |
@TableField(value = "update_time", fill = FieldFill.UPDATE) |
|
115 |
private Date updateTime; |
|
116 |
|
|
117 |
/** |
|
118 |
* 更新人 |
|
119 |
*/ |
|
120 |
@TableField(value = "update_user", fill = FieldFill.UPDATE) |
|
121 |
private Long updateUser; |
|
122 |
|
|
123 |
/** |
|
124 |
* 乐观锁 |
|
125 |
*/ |
|
126 |
@TableField("version") |
|
127 |
private Integer version; |
|
128 |
|
|
129 |
|
|
130 |
public Long getUserId() { |
|
131 |
return userId; |
|
132 |
} |
|
133 |
|
|
134 |
public void setUserId(Long userId) { |
|
135 |
this.userId = userId; |
|
136 |
} |
|
137 |
|
|
138 |
public String getAvatar() { |
|
139 |
return avatar; |
|
140 |
} |
|
141 |
|
|
142 |
public void setAvatar(String avatar) { |
|
143 |
this.avatar = avatar; |
|
144 |
} |
|
145 |
|
|
146 |
public String getAccount() { |
|
147 |
return account; |
|
148 |
} |
|
149 |
|
|
150 |
public void setAccount(String account) { |
|
151 |
this.account = account; |
|
152 |
} |
|
153 |
|
|
154 |
public String getPassword() { |
|
155 |
return password; |
|
156 |
} |
|
157 |
|
|
158 |
public void setPassword(String password) { |
|
159 |
this.password = password; |
|
160 |
} |
|
161 |
|
|
162 |
public String getSalt() { |
|
163 |
return salt; |
|
164 |
} |
|
165 |
|
|
166 |
public void setSalt(String salt) { |
|
167 |
this.salt = salt; |
|
168 |
} |
|
169 |
|
|
170 |
public String getName() { |
|
171 |
return name; |
|
172 |
} |
|
173 |
|
|
174 |
public void setName(String name) { |
|
175 |
this.name = name; |
|
176 |
} |
|
177 |
|
|
178 |
public Date getBirthday() { |
|
179 |
return birthday; |
|
180 |
} |
|
181 |
|
|
182 |
public void setBirthday(Date birthday) { |
|
183 |
this.birthday = birthday; |
|
184 |
} |
|
185 |
|
|
186 |
public String getSex() { |
|
187 |
return sex; |
|
188 |
} |
|
189 |
|
|
190 |
public void setSex(String sex) { |
|
191 |
this.sex = sex; |
|
192 |
} |
|
193 |
|
|
194 |
public String getEmail() { |
|
195 |
return email; |
|
196 |
} |
|
197 |
|
|
198 |
public void setEmail(String email) { |
|
199 |
this.email = email; |
|
200 |
} |
|
201 |
|
|
202 |
public String getPhone() { |
|
203 |
return phone; |
|
204 |
} |
|
205 |
|
|
206 |
public void setPhone(String phone) { |
|
207 |
this.phone = phone; |
|
208 |
} |
|
209 |
|
|
210 |
public String getRoleId() { |
|
211 |
return roleId; |
|
212 |
} |
|
213 |
|
|
214 |
public void setRoleId(String roleId) { |
|
215 |
this.roleId = roleId; |
|
216 |
} |
|
217 |
|
|
218 |
public Long getDeptId() { |
|
219 |
return deptId; |
|
220 |
} |
|
221 |
|
|
222 |
public void setDeptId(Long deptId) { |
|
223 |
this.deptId = deptId; |
|
224 |
} |
|
225 |
|
|
226 |
public String getStatus() { |
|
227 |
return status; |
|
228 |
} |
|
229 |
|
|
230 |
public void setStatus(String status) { |
|
231 |
this.status = status; |
|
232 |
} |
|
233 |
|
|
234 |
public Date getCreateTime() { |
|
235 |
return createTime; |
|
236 |
} |
|
237 |
|
|
238 |
public void setCreateTime(Date createTime) { |
|
239 |
this.createTime = createTime; |
|
240 |
} |
|
241 |
|
|
242 |
public Long getCreateUser() { |
|
243 |
return createUser; |
|
244 |
} |
|
245 |
|
|
246 |
public void setCreateUser(Long createUser) { |
|
247 |
this.createUser = createUser; |
|
248 |
} |
|
249 |
|
|
250 |
public Date getUpdateTime() { |
|
251 |
return updateTime; |
|
252 |
} |
|
253 |
|
|
254 |
public void setUpdateTime(Date updateTime) { |
|
255 |
this.updateTime = updateTime; |
|
256 |
} |
|
257 |
|
|
258 |
public Long getUpdateUser() { |
|
259 |
return updateUser; |
|
260 |
} |
|
261 |
|
|
262 |
public void setUpdateUser(Long updateUser) { |
|
263 |
this.updateUser = updateUser; |
|
264 |
} |
|
265 |
|
|
266 |
public Integer getVersion() { |
|
267 |
return version; |
|
268 |
} |
|
269 |
|
|
270 |
public void setVersion(Integer version) { |
|
271 |
this.version = version; |
|
272 |
} |
|
273 |
|
|
274 |
@Override |
|
275 |
public String toString() { |
|
276 |
return "User{" + |
|
277 |
"userId=" + userId + |
|
278 |
", avatar=" + avatar + |
|
279 |
", account=" + account + |
|
280 |
", password=" + password + |
|
281 |
", salt=" + salt + |
|
282 |
", name=" + name + |
|
283 |
", birthday=" + birthday + |
|
284 |
", sex=" + sex + |
|
285 |
", email=" + email + |
|
286 |
", phone=" + phone + |
|
287 |
", roleId=" + roleId + |
|
288 |
", deptId=" + deptId + |
|
289 |
", status=" + status + |
|
290 |
", createTime=" + createTime + |
|
291 |
", createUser=" + createUser + |
|
292 |
", updateTime=" + updateTime + |
|
293 |
", updateUser=" + updateUser + |
|
294 |
", version=" + version + |
|
295 |
"}"; |
|
296 |
} |
|
297 |
} |