mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 05:12:07 +08:00
登录手机号校验、短信验证码校验相关提示优化
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@ public class SmsCodeSendReqDTO {
|
||||
|
||||
@Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "15601691300")
|
||||
@Mobile
|
||||
@NotEmpty(message = "手机号不能为空")
|
||||
@NotEmpty(message = "请输入手机号")
|
||||
private String mobile;
|
||||
|
||||
@Schema(description = "发送场景", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
|
||||
+2
-2
@@ -102,7 +102,7 @@ public class AuthController {
|
||||
@PermitAll
|
||||
@Operation(summary = "使用账号密码登录")
|
||||
@OperateLog(enable = false) // 避免 Post 请求被记录操作日志
|
||||
public CommonResult<AuthLoginRespVO> login(@Valid @RequestBody AuthLoginReqVO reqVO, HttpServletRequest request) {
|
||||
public CommonResult<AuthLoginRespVO> login(@Valid @RequestBody AuthLoginReqVO reqVO) {
|
||||
return success(authService.login(reqVO));
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ public class AuthController {
|
||||
@OperateLog(enable = false)
|
||||
@Parameter(name = "mobile", description = "手机号", required = true)
|
||||
public CommonResult<Boolean> loginCheck(
|
||||
@Param("mobile") @NotEmpty(message = "手机号不能为空") @Mobile(message = "账号密码不正确,请重新输入", ignoreWhenCheck = {"admin"}) String mobile) {
|
||||
@Param("mobile") @NotEmpty(message = "请输入手机号") @Mobile(message = "账号密码不正确,请重新输入", ignoreWhenCheck = {"admin"}) String mobile) {
|
||||
return success(authService.loginCheck(mobile));
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -20,11 +20,11 @@ public class AuthLoginSmsCheckReqVO {
|
||||
@Schema(description = "手机号码", example = "15601691300")
|
||||
@Length(min = 11, max = 11, message = "手机号长度必须 11 位")
|
||||
@Mobile
|
||||
@NotEmpty(message = "手机号不能为空")
|
||||
@NotEmpty(message = "请输入手机号")
|
||||
private String mobile;
|
||||
|
||||
@Schema(description = "验证码", example = "123456")
|
||||
@Length(min = 6, max = 6, message = "短信验证码不正确")
|
||||
@NotEmpty(message = "短信验证码不能为空")
|
||||
@NotEmpty(message = "请输入短信验证码")
|
||||
private String smsCaptchaVerification;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user