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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
package com.iplatform.base.pojo;
 
import com.walker.web.ClientType;
import com.walker.web.LoginType;
 
import java.io.Serializable;
 
public class RequestLogin implements Serializable {
 
    /**
     * 用户名
     */
    private String username;
 
    /**
     * 用户密码
     */
    private String password;
 
    /**
     * 验证码
     */
    private String code;
 
    /**
     * 唯一标识(服务端token缓存的标识)
     */
    private String uuid;
 
    private String loginType = LoginType.INDEX_USER_PASSWORD;
 
    private String clientType = ClientType.INDEX_PC;
 
    /**
     * 验证码方式(类型):code/sms/slide/jigsaw/none
     */
    private String verifyType;
 
    /**
     * 终端登录,设备唯一编号,如:app设备imei等。
     * @date 2023-03-20
     */
    private String clientId;
 
    /**
     * 终端登录附带的其他信息,如:操作系统等
     * @date 2023-03-20
     */
    private String clientInfo;
 
    public String getClientInfo() {
        return clientInfo;
    }
 
    public void setClientInfo(String clientInfo) {
        this.clientInfo = clientInfo;
    }
 
    public String getClientId() {
        return clientId;
    }
 
    public void setClientId(String clientId) {
        this.clientId = clientId;
    }
 
    /**
     * 返回验证码类型,值参考:{@linkplain com.walker.web.CaptchaType} 枚举。
     * @return
     */
    public String getVerifyType() {
        return verifyType;
    }
 
    public void setVerifyType(String verifyType) {
        this.verifyType = verifyType;
    }
 
    /**
     * 返回终端类型,如:pc/tv/mobile/other
     * @return
     * @date 2023-01-27
     */
    public String getClientType() {
        return clientType;
    }
 
    public void setClientType(String clientType) {
        this.clientType = clientType;
    }
 
 
    /**
     * 登录类型,参考: {@linkplain LoginType#INDEX_USER_PASSWORD} | {@linkplain LoginType#INDEX_SMS_CODE} 等。
     * @return
     * @date 2023-01-26 添加属性,支持移动端APP登录
     */
    public String getLoginType() {
        return loginType;
    }
 
    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }
 
    public String getUsername()
    {
        return username;
    }
 
    public void setUsername(String username)
    {
        this.username = username;
    }
 
    public String getPassword()
    {
        return password;
    }
 
    public void setPassword(String password)
    {
        this.password = password;
    }
 
    public String getCode()
    {
        return code;
    }
 
    public void setCode(String code)
    {
        this.code = code;
    }
 
    public String getUuid()
    {
        return uuid;
    }
 
    public void setUuid(String uuid)
    {
        this.uuid = uuid;
    }
 
    @Override
    public String toString(){
        return new StringBuilder("[username=").append(this.username)
                .append(", password=").append(this.password)
                .append(", code=").append(this.code)
                .append(", uuid=").append(this.uuid)
                .append(", verifyType=").append(this.verifyType)
                .append(", loginType=").append(this.getLoginType())
                .append(", clientId=").append(this.clientId)
                .append(", clientInfo=").append(this.clientInfo)
                .append("]").toString();
    }
}