public class UserResetPassword {
@Pattern(regexp = “1[0-9]{10}”, message = “手机号必须是11位合法手机号,不包含 +、086 等内容”)
private String phone;
@Size(min = 8, message = “密码长度不小于 8 位”)
@Pattern(regexp = “^(?![a-zA-z]+$)(?!\d+$)(?![!@#$%^&]+$)[a-zA-Z\d!@#$%^&]+$”, message = “密码需同时包含字母和数字”)
private String currentPassword;
@NotBlank(message = “验证码不能为空”)
private String verifyCode;
}