|
@@ -24,7 +24,7 @@ import java.util.List;
|
|
|
@Data
|
|
|
public class UpsertPersonDTO {
|
|
|
@ApiModelProperty(value = "姓名", required = true)
|
|
|
- @NotNull(message = "姓名不能为空")
|
|
|
+ @NotEmpty(message = "姓名不能为空")
|
|
|
@Length(max = 20, message = "姓名长度不能大于20")
|
|
|
@Pattern(regexp = RegexConstants.ALL_REGEX, message = "姓名" + RegexConstants.ALL_REGEX_WARNING)
|
|
|
private String name;
|
|
@@ -68,7 +68,8 @@ public class UpsertPersonDTO {
|
|
|
@ApiModelProperty(value = "所属部门id", required = true)
|
|
|
private List<String> depIds;
|
|
|
|
|
|
- @ApiModelProperty(value = "关联的项目", required = true)
|
|
|
+ @ApiModelProperty(value = "项目权限", required = true)
|
|
|
+ @NotEmpty(message = "项目权限不能为空", groups = {AddPersonValidationGroup.class})
|
|
|
private List<UpsertSaasProjectDTO> projects;
|
|
|
|
|
|
@ApiModelProperty(value = "主岗")
|
|
@@ -89,7 +90,7 @@ public class UpsertPersonDTO {
|
|
|
@Pattern(regexp = RegexConstants.EN_NUM_CHAR_REGEX, message = "账号" + RegexConstants.EN_NUM_CHAR_REGEX_WARNING)
|
|
|
@Length(max = 30, message = "账号长度不能大于30")
|
|
|
@ApiModelProperty(value = "账号", required = true)
|
|
|
- @NotNull(message = "账号不能为空")
|
|
|
+ @NotEmpty(message = "账号不能为空")
|
|
|
private String username;
|
|
|
|
|
|
@ApiModelProperty("登录权限(年.月.日)")
|