|
|
|
@ -7,18 +7,19 @@ import lombok.Data;
|
|
|
|
|
@Data
|
|
|
|
|
public class UserModifyPasswordDTO {
|
|
|
|
|
@NotBlank(message = "旧密码不能为空")
|
|
|
|
|
@Pattern(regexp = "^.+$")
|
|
|
|
|
@Pattern(regexp = "^.+$", message = "旧密码不能为空")
|
|
|
|
|
private String oldPassword;
|
|
|
|
|
|
|
|
|
|
@NotBlank(message = "新密码不能为空")
|
|
|
|
|
@Pattern(regexp = "^.+$")
|
|
|
|
|
@Pattern(regexp = "^.+$", message = "新密码不能为空")
|
|
|
|
|
private String newPassword;
|
|
|
|
|
|
|
|
|
|
@NotBlank(message = "再次输入的密码不能为空")
|
|
|
|
|
@Pattern(regexp = "^.+$")
|
|
|
|
|
@Pattern(regexp = "^.+$", message = "再次输入的密码不能为空")
|
|
|
|
|
private String reNewPassword;
|
|
|
|
|
|
|
|
|
|
@NotBlank(message = "身份证不能为空")
|
|
|
|
|
@Pattern(regexp = "^[1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\\d{3}(\\d|X|x)$")
|
|
|
|
|
@Pattern(regexp = "^[1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\\d{3}(\\d|X|x)$",
|
|
|
|
|
message = "身份证格式不正确")
|
|
|
|
|
private String identity;
|
|
|
|
|
}
|
|
|
|
|