提交 | 用户 | 时间
|
71e81e
|
1 |
/** |
懒 |
2 |
* Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng) |
|
3 |
* <p> |
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
5 |
* you may not use this file except in compliance with the License. |
|
6 |
* You may obtain a copy of the License at |
|
7 |
* <p> |
|
8 |
* http://www.apache.org/licenses/LICENSE-2.0 |
|
9 |
* <p> |
|
10 |
* Unless required by applicable law or agreed to in writing, software |
|
11 |
* distributed under the License is distributed on an "AS IS" BASIS, |
|
12 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
13 |
* See the License for the specific language governing permissions and |
|
14 |
* limitations under the License. |
|
15 |
*/ |
|
16 |
package cn.stylefeng.guns.sys.modular.system.model; |
|
17 |
|
|
18 |
import lombok.Data; |
|
19 |
import org.springframework.format.annotation.DateTimeFormat; |
|
20 |
|
|
21 |
import javax.validation.constraints.NotBlank; |
|
22 |
import javax.validation.constraints.NotNull; |
|
23 |
import java.util.Date; |
|
24 |
|
|
25 |
/** |
|
26 |
* 用户传输bean |
|
27 |
* |
|
28 |
* @author stylefeng |
|
29 |
* @Date 2017/5/5 22:40 |
|
30 |
*/ |
|
31 |
@Data |
|
32 |
public class UserDto { |
|
33 |
|
|
34 |
private Long userId; |
|
35 |
|
|
36 |
@NotBlank |
|
37 |
private String account; |
|
38 |
|
|
39 |
@NotBlank |
|
40 |
private String password; |
|
41 |
|
|
42 |
public Long getUserId() { |
|
43 |
return userId; |
|
44 |
} |
|
45 |
|
|
46 |
public void setUserId(Long userId) { |
|
47 |
this.userId = userId; |
|
48 |
} |
|
49 |
|
|
50 |
public String getAccount() { |
|
51 |
return account; |
|
52 |
} |
|
53 |
|
|
54 |
public void setAccount(String account) { |
|
55 |
this.account = account; |
|
56 |
} |
|
57 |
|
|
58 |
public String getPassword() { |
|
59 |
return password; |
|
60 |
} |
|
61 |
|
|
62 |
public void setPassword(String password) { |
|
63 |
this.password = password; |
|
64 |
} |
|
65 |
|
|
66 |
public String getName() { |
|
67 |
return name; |
|
68 |
} |
|
69 |
|
|
70 |
public void setName(String name) { |
|
71 |
this.name = name; |
|
72 |
} |
|
73 |
|
|
74 |
public Date getBirthday() { |
|
75 |
return birthday; |
|
76 |
} |
|
77 |
|
|
78 |
public void setBirthday(Date birthday) { |
|
79 |
this.birthday = birthday; |
|
80 |
} |
|
81 |
|
|
82 |
public String getSex() { |
|
83 |
return sex; |
|
84 |
} |
|
85 |
|
|
86 |
public void setSex(String sex) { |
|
87 |
this.sex = sex; |
|
88 |
} |
|
89 |
|
|
90 |
public String getEmail() { |
|
91 |
return email; |
|
92 |
} |
|
93 |
|
|
94 |
public void setEmail(String email) { |
|
95 |
this.email = email; |
|
96 |
} |
|
97 |
|
|
98 |
public String getPhone() { |
|
99 |
return phone; |
|
100 |
} |
|
101 |
|
|
102 |
public void setPhone(String phone) { |
|
103 |
this.phone = phone; |
|
104 |
} |
|
105 |
|
|
106 |
public String getRoleId() { |
|
107 |
return roleId; |
|
108 |
} |
|
109 |
|
|
110 |
public void setRoleId(String roleId) { |
|
111 |
this.roleId = roleId; |
|
112 |
} |
|
113 |
|
|
114 |
public Long getDeptId() { |
|
115 |
return deptId; |
|
116 |
} |
|
117 |
|
|
118 |
public void setDeptId(Long deptId) { |
|
119 |
this.deptId = deptId; |
|
120 |
} |
|
121 |
|
|
122 |
public String getStatus() { |
|
123 |
return status; |
|
124 |
} |
|
125 |
|
|
126 |
public void setStatus(String status) { |
|
127 |
this.status = status; |
|
128 |
} |
|
129 |
|
|
130 |
public String getAvatar() { |
|
131 |
return avatar; |
|
132 |
} |
|
133 |
|
|
134 |
public void setAvatar(String avatar) { |
|
135 |
this.avatar = avatar; |
|
136 |
} |
|
137 |
|
|
138 |
public String getPosition() { |
|
139 |
return position; |
|
140 |
} |
|
141 |
|
|
142 |
public void setPosition(String position) { |
|
143 |
this.position = position; |
|
144 |
} |
|
145 |
|
|
146 |
@NotBlank |
|
147 |
private String name; |
|
148 |
|
|
149 |
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|
150 |
private Date birthday; |
|
151 |
|
|
152 |
private String sex; |
|
153 |
|
|
154 |
// @NotBlank |
|
155 |
private String email; |
|
156 |
|
|
157 |
private String phone; |
|
158 |
|
|
159 |
private String roleId; |
|
160 |
|
|
161 |
@NotNull |
|
162 |
private Long deptId; |
|
163 |
|
|
164 |
private String status; |
|
165 |
|
|
166 |
private String avatar; |
|
167 |
|
|
168 |
@NotBlank |
|
169 |
private String position; |
|
170 |
|
|
171 |
} |