package com.ishop.model.request; import java.io.Serializable; /** * 前端用户修改个人密码。 * @date 2023-09-20 */ public class PasswordRequest implements Serializable { public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getCaptcha() { return captcha; } public void setCaptcha(String captcha) { this.captcha = captcha; } /** * 需要从缓存找出验证码信息,用到验证码的标识。 * @return */ public String getUuid() { return uuid; } public void setUuid(String uuid) { this.uuid = uuid; } private String uuid; // @ApiModelProperty(value = "密码", required = true) // @Pattern(regexp = RegularConstants.PASSWORD, message = "密码格式错误,密码必须以字母开头,长度在6~18之间,只能包含字符、数字和下划线") private String password; // @ApiModelProperty(value = "验证码", required = true) // @Pattern(regexp = RegularConstants.VALIDATE_CODE_NUM_SIX, message = "验证码格式错误,验证码必须为6位数字") // @JsonProperty(value = "captcha") // private String validateCode; private String captcha; @Override public String toString() { return "PasswordRequest{" + "password='" + password + '\'' + ", captcha='" + captcha + '\'' + ", uuid='" + uuid + '\'' + '}'; } }