dev:新增用户时手机号不能为空校验
parent
61b3655b0a
commit
55b17b944b
|
|
@ -56,6 +56,7 @@ public class UserAddCmd extends Command {
|
|||
private String email;
|
||||
|
||||
@ApiModelProperty(value = "手机号", name = "phone")
|
||||
@NotEmpty(message = "手机号不能为空")
|
||||
private String phone;
|
||||
|
||||
@ApiModelProperty(value = "人员类型编码(主要负责人等)", name = "personnelType", required = true)
|
||||
|
|
@ -71,6 +72,7 @@ public class UserAddCmd extends Command {
|
|||
private String nationName;
|
||||
|
||||
@ApiModelProperty(value = "身份证号", name = "userIdCard")
|
||||
@NotEmpty(message = "身份证号不能为空")
|
||||
private String userIdCard;
|
||||
|
||||
@ApiModelProperty(value = "人脸头像url", name = "userAvatarUrl")
|
||||
|
|
|
|||
Loading…
Reference in New Issue