shikeyin
2024-01-11 65da8373531677b1c37a98f53eaa30c892f35e5a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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 + '\'' +
                '}';
    }
}