提交 | 用户 | 时间
|
722af2
|
1 |
package com.dl.common.core.domain.model; |
X |
2 |
|
|
3 |
import com.dl.common.constant.UserConstants; |
|
4 |
import lombok.Data; |
|
5 |
import org.hibernate.validator.constraints.Length; |
|
6 |
|
|
7 |
import javax.validation.constraints.NotBlank; |
|
8 |
|
|
9 |
/** |
|
10 |
* 用户登录对象 |
|
11 |
* |
|
12 |
* @author Lion Li |
|
13 |
*/ |
|
14 |
|
|
15 |
@Data |
|
16 |
public class LoginBody { |
|
17 |
|
|
18 |
/** |
|
19 |
* 用户名 |
|
20 |
*/ |
|
21 |
@NotBlank(message = "{user.username.not.blank}") |
|
22 |
@Length(min = UserConstants.USERNAME_MIN_LENGTH, max = UserConstants.USERNAME_MAX_LENGTH, message = "{user.username.length.valid}") |
|
23 |
private String username; |
|
24 |
|
|
25 |
/** |
|
26 |
* 用户密码 |
|
27 |
*/ |
|
28 |
@NotBlank(message = "{user.password.not.blank}") |
|
29 |
@Length(min = UserConstants.PASSWORD_MIN_LENGTH, max = UserConstants.PASSWORD_MAX_LENGTH, message = "{user.password.length.valid}") |
|
30 |
private String password; |
|
31 |
|
|
32 |
/** |
|
33 |
* 验证码 |
|
34 |
*/ |
|
35 |
private String code; |
|
36 |
|
|
37 |
/** |
|
38 |
* 唯一标识 |
|
39 |
*/ |
|
40 |
private String uuid; |
|
41 |
|
|
42 |
} |