| | |
| | | @Schema(description = "手机号", requiredMode = Schema.RequiredMode.REQUIRED) |
| | | @NotEmpty(message = "手机号不能为空") //不能为空也不能为null |
| | | //@NotNull(message = "手机号不能为空") //不能为null但是可以为空 |
| | | @Length(message = "手机号必须{min}位", min = 11, max = 11) |
| | | //@Length(message = "手机号必须{min}位", min = 11, max = 11) |
| | | public String phone ; |
| | | |
| | | @Schema(description = "密码", requiredMode = Schema.RequiredMode.REQUIRED) |
| | | @NotEmpty(message = "密码不能为空") //不能为空也不能为null |
| | | @Length(message = "密码必须{min}位", min = 6, max = 6) |
| | | @Length(message = "密码必须{min}位", min = 5, max = 6) |
| | | public String password ; |
| | | |
| | | @Schema(description = "组织单位", requiredMode = Schema.RequiredMode.REQUIRED) |