dev:新增用户时手机号不能为空校验

main
SondonYong 2025-12-01 10:48:41 +08:00
parent 61b3655b0a
commit 55b17b944b
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,7 @@ public class UserAddCmd extends Command {
private String email; private String email;
@ApiModelProperty(value = "手机号", name = "phone") @ApiModelProperty(value = "手机号", name = "phone")
@NotEmpty(message = "手机号不能为空")
private String phone; private String phone;
@ApiModelProperty(value = "人员类型编码(主要负责人等)", name = "personnelType", required = true) @ApiModelProperty(value = "人员类型编码(主要负责人等)", name = "personnelType", required = true)
@ -71,6 +72,7 @@ public class UserAddCmd extends Command {
private String nationName; private String nationName;
@ApiModelProperty(value = "身份证号", name = "userIdCard") @ApiModelProperty(value = "身份证号", name = "userIdCard")
@NotEmpty(message = "身份证号不能为空")
private String userIdCard; private String userIdCard;
@ApiModelProperty(value = "人脸头像url", name = "userAvatarUrl") @ApiModelProperty(value = "人脸头像url", name = "userAvatarUrl")