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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
package com.ishop.model.wechat;
 
import java.io.Serializable;
 
/**
 * 微信绑定手机号请求对象
 * @date 2023-08-07
 */
public class WechatBindingPhoneRequest implements Serializable {
 
    public String getPhone() {
        return phone;
    }
 
    public void setPhone(String phone) {
        this.phone = phone;
    }
 
    public String getCaptcha() {
        return captcha;
    }
 
    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }
 
    public String getType() {
        return type;
    }
 
    public void setType(String type) {
        this.type = type;
    }
 
    public String getKey() {
        return key;
    }
 
    public void setKey(String key) {
        this.key = key;
    }
 
    public String getEncryptedData() {
        return encryptedData;
    }
 
    public void setEncryptedData(String encryptedData) {
        this.encryptedData = encryptedData;
    }
 
    public String getIv() {
        return iv;
    }
 
    public void setIv(String iv) {
        this.iv = iv;
    }
 
    public String getCode() {
        return code;
    }
 
    public void setCode(String code) {
        this.code = code;
    }
 
    /**
     * 自定义添加属性,在绑定接收短信验证码时,需要传入之前的请求标识:uuid,查找验证码缓存。
     * @return
     * @date 2023-08-07
     */
    public String getUuid() {
        return uuid;
    }
 
    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
 
    private String uuid;
    //    @ApiModelProperty(value = "手机号,公众号、app微信必传")
//    @Pattern(regexp = RegularConstants.PHONE_TWO, message = "请输入正确的手机号")
    private String phone;
 
//    @ApiModelProperty(value = "验证码,公众号、app微信必传")
//    @Pattern(regexp = RegularConstants.VALIDATE_CODE_NUM_SIX, message = "请输入6位验证码")
    private String captcha;
 
//    @ApiModelProperty(value = "类型:wechat-公众号,routine-小程序,iosWx-苹果微信,androidWx-安卓微信")
//    @NotBlank(message = "类型不能为空")
//    @StringContains(limitValues = {"wechat","routine","iosWx","androidWx"}, message = "未知的类型")
    private String type;
 
//    @ApiModelProperty(value = "新用户登录时返回的key")
//    @NotBlank(message = "key不能为空")
    private String key;
 
//    @ApiModelProperty(value = "小程序获取手机号加密数据,小程序必传")
    private String encryptedData;
 
//    @ApiModelProperty(value = "加密算法的初始向量,小程序必传")
    private String iv;
 
//    @ApiModelProperty(value = "小程序code,小程序必传")
    private String code;
 
    @Override
    public String toString() {
        return "WechatBindingPhoneRequest{" +
                "uuid='" + uuid + '\'' +
                ", phone='" + phone + '\'' +
                ", captcha='" + captcha + '\'' +
                ", type='" + type + '\'' +
                ", key='" + key + '\'' +
                ", encryptedData='" + encryptedData + '\'' +
                ", iv='" + iv + '\'' +
                ", code='" + code + '\'' +
                '}';
    }
}