提交 | 用户 | 时间
|
cb8c71
|
1 |
package com.iailab.sdk.auth.client.vo; |
H |
2 |
|
|
3 |
import lombok.AllArgsConstructor; |
|
4 |
import lombok.Builder; |
|
5 |
import lombok.Data; |
|
6 |
import lombok.NoArgsConstructor; |
|
7 |
import org.hibernate.validator.constraints.Length; |
|
8 |
|
|
9 |
import javax.validation.constraints.NotEmpty; |
|
10 |
import javax.validation.constraints.Pattern; |
|
11 |
|
|
12 |
@Data |
|
13 |
@NoArgsConstructor |
|
14 |
@AllArgsConstructor |
|
15 |
@Builder |
|
16 |
public class AuthLoginReqVO { |
|
17 |
|
|
18 |
@NotEmpty(message = "登录账号不能为空") |
|
19 |
@Length(min = 4, max = 16, message = "账号长度为 4-16 位") |
|
20 |
@Pattern(regexp = "^[A-Za-z0-9]+$", message = "账号格式为数字以及字母") |
|
21 |
private String username; |
|
22 |
|
|
23 |
@NotEmpty(message = "密码不能为空") |
|
24 |
@Length(min = 4, max = 16, message = "密码长度为 4-16 位") |
|
25 |
private String password; |
|
26 |
|
|
27 |
// ========== 图片验证码相关 ========== |
|
28 |
private String captchaVerification; |
|
29 |
|
|
30 |
|
|
31 |
} |