[add] app注册、登录、实名认证、人员展示、通知
This commit is contained in:
@ -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;
|
||||
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user