[add] app注册、登录、实名认证、人员展示、通知

This commit is contained in:
lcj
2025-07-24 17:36:30 +08:00
parent e6a98ad0bd
commit 3d2f4b05ff
55 changed files with 1998 additions and 213 deletions

View File

@ -17,7 +17,6 @@ public class PasswordLoginBody extends LoginBody {
/**
* 用户名
*/
@NotBlank(message = "{user.username.not.blank}")
@Length(min = 2, max = 20, message = "{user.username.length.valid}")
private String username;
@ -28,4 +27,9 @@ public class PasswordLoginBody extends LoginBody {
@Length(min = 5, max = 20, message = "{user.password.length.valid}")
private String password;
/**
* 手机号
*/
private String phonenumber;
}

View File

@ -17,7 +17,7 @@ public class RegisterBody extends LoginBody {
/**
* 用户名
*/
@NotBlank(message = "{user.username.not.blank}")
// @NotBlank(message = "{user.username.not.blank}")
@Length(min = 2, max = 20, message = "{user.username.length.valid}")
private String username;
@ -28,6 +28,12 @@ public class RegisterBody extends LoginBody {
@Length(min = 5, max = 20, message = "{user.password.length.valid}")
private String password;
/**
* 手机号码
*/
@NotBlank(message = "{user.phonenumber.not.blank}")
private String phonenumber;
private String userType;
}

View File

@ -77,7 +77,7 @@ public class CryptoFilter implements Filter {
// new ServiceException("没有访问权限,请联系管理员授权", HttpStatus.FORBIDDEN));
// return;
// }
throw new ServiceException("无权访问接口", HttpStatus.BAD_METHOD);
// throw new ServiceException("无权访问接口", HttpStatus.BAD_METHOD);
}
}