|
@@ -24,7 +24,7 @@ public class AuthLoginReqVO extends CaptchaVerificationReqVO {
|
|
|
@Schema(description = "账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudaoyuanma")
|
|
@Schema(description = "账号", requiredMode = Schema.RequiredMode.REQUIRED, example = "yudaoyuanma")
|
|
|
@NotEmpty(message = "登录账号不能为空")
|
|
@NotEmpty(message = "登录账号不能为空")
|
|
|
@Length(min = 4, max = 16, message = "账号长度为 4-16 位")
|
|
@Length(min = 4, max = 16, message = "账号长度为 4-16 位")
|
|
|
- @Pattern(regexp = "^[A-Za-z0-9]+$", message = "账号格式为数字以及字母")
|
|
|
|
|
|
|
+ @Pattern(regexp = "^[A-Za-z0-9-]+$", message = "账号格式为数字、字母以及符号-")
|
|
|
private String username;
|
|
private String username;
|
|
|
|
|
|
|
|
@Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "buzhidao")
|
|
@Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED, example = "buzhidao")
|