parent
65ecebc84d
commit
822a0d9c1b
6 changed files with 47 additions and 9 deletions
@ -0,0 +1,34 @@ |
||||
package com.daqing.framework.domain.hrms.request; |
||||
|
||||
import lombok.Data; |
||||
|
||||
import javax.validation.constraints.NotBlank; |
||||
import javax.validation.constraints.Pattern; |
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* 重置密码请求体对象 |
||||
* |
||||
* @author gongsj |
||||
* @email gongsj@gmail.com |
||||
* @date 2020-09-07 17:12:14 |
||||
*/ |
||||
@Data |
||||
public class ResetPwdRequest implements Serializable { |
||||
/** |
||||
* 新密码 |
||||
*/ |
||||
@Pattern(regexp = "^(?=.*[0-9].*)(?=.*[A-Z].*)(?=.*[a-z].*).{6,20}$",message = "密码格式不正确!") |
||||
@NotBlank(message = "新密码不能为空!") |
||||
private String newPwd; |
||||
/** |
||||
* 确认密码 |
||||
*/ |
||||
@NotBlank(message = "确认密码不能为空!") |
||||
private String confirmPwd; |
||||
/** |
||||
* 手机账号 |
||||
*/ |
||||
@Pattern(regexp = "^1(3([0-35-9]\\d|4[1-8])|4[14-9]\\d|5([0125689]\\d|7[1-79])|66\\d|7[2-35-8]\\d|8\\d{2}|9[13589]\\d)\\d{7}$",message = "手机号格式不正确!") |
||||
private String phoneAccount; |
||||
} |
Loading…
Reference in new issue