PC
2024-03-31 8c9ba6667b89cc0494d05b5da4355dde205b8d4a
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
package com.qianwen.core.secure;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
 
@ApiModel(description = "认证信息")
/* loaded from: blade-starter-auth-9.3.0.0-SNAPSHOT.jar:org/springblade/core/secure/AuthInfo.class */
public class AuthInfo {
    @ApiModelProperty("令牌")
    private String accessToken;
    @ApiModelProperty("令牌类型")
    private String tokenType;
    @ApiModelProperty("角色名")
    private String authority;
    @ApiModelProperty("用户名")
    private String userName;
    @ApiModelProperty("账号名")
    private String account;
    @ApiModelProperty("过期时间")
    private long expiresIn;
    @ApiModelProperty("头像")
    private String avatar = "https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png";
    @ApiModelProperty("许可证")
    private String license = "made by blade";
 
    public void setAccessToken(final String accessToken) {
        this.accessToken = accessToken;
    }
 
    public void setTokenType(final String tokenType) {
        this.tokenType = tokenType;
    }
 
    public void setAvatar(final String avatar) {
        this.avatar = avatar;
    }
 
    public void setAuthority(final String authority) {
        this.authority = authority;
    }
 
    public void setUserName(final String userName) {
        this.userName = userName;
    }
 
    public void setAccount(final String account) {
        this.account = account;
    }
 
    public void setExpiresIn(final long expiresIn) {
        this.expiresIn = expiresIn;
    }
 
    public void setLicense(final String license) {
        this.license = license;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof AuthInfo) {
            AuthInfo other = (AuthInfo) o;
            if (other.canEqual(this) && getExpiresIn() == other.getExpiresIn()) {
                Object this$accessToken = getAccessToken();
                Object other$accessToken = other.getAccessToken();
                if (this$accessToken == null) {
                    if (other$accessToken != null) {
                        return false;
                    }
                } else if (!this$accessToken.equals(other$accessToken)) {
                    return false;
                }
                Object this$tokenType = getTokenType();
                Object other$tokenType = other.getTokenType();
                if (this$tokenType == null) {
                    if (other$tokenType != null) {
                        return false;
                    }
                } else if (!this$tokenType.equals(other$tokenType)) {
                    return false;
                }
                Object this$avatar = getAvatar();
                Object other$avatar = other.getAvatar();
                if (this$avatar == null) {
                    if (other$avatar != null) {
                        return false;
                    }
                } else if (!this$avatar.equals(other$avatar)) {
                    return false;
                }
                Object this$authority = getAuthority();
                Object other$authority = other.getAuthority();
                if (this$authority == null) {
                    if (other$authority != null) {
                        return false;
                    }
                } else if (!this$authority.equals(other$authority)) {
                    return false;
                }
                Object this$userName = getUserName();
                Object other$userName = other.getUserName();
                if (this$userName == null) {
                    if (other$userName != null) {
                        return false;
                    }
                } else if (!this$userName.equals(other$userName)) {
                    return false;
                }
                Object this$account = getAccount();
                Object other$account = other.getAccount();
                if (this$account == null) {
                    if (other$account != null) {
                        return false;
                    }
                } else if (!this$account.equals(other$account)) {
                    return false;
                }
                Object this$license = getLicense();
                Object other$license = other.getLicense();
                return this$license == null ? other$license == null : this$license.equals(other$license);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof AuthInfo;
    }
 
    public int hashCode() {
        long $expiresIn = getExpiresIn();
        int result = (1 * 59) + ((int) (($expiresIn >>> 32) ^ $expiresIn));
        Object $accessToken = getAccessToken();
        int result2 = (result * 59) + ($accessToken == null ? 43 : $accessToken.hashCode());
        Object $tokenType = getTokenType();
        int result3 = (result2 * 59) + ($tokenType == null ? 43 : $tokenType.hashCode());
        Object $avatar = getAvatar();
        int result4 = (result3 * 59) + ($avatar == null ? 43 : $avatar.hashCode());
        Object $authority = getAuthority();
        int result5 = (result4 * 59) + ($authority == null ? 43 : $authority.hashCode());
        Object $userName = getUserName();
        int result6 = (result5 * 59) + ($userName == null ? 43 : $userName.hashCode());
        Object $account = getAccount();
        int result7 = (result6 * 59) + ($account == null ? 43 : $account.hashCode());
        Object $license = getLicense();
        return (result7 * 59) + ($license == null ? 43 : $license.hashCode());
    }
 
    public String toString() {
        return "AuthInfo(accessToken=" + getAccessToken() + ", tokenType=" + getTokenType() + ", avatar=" + getAvatar() + ", authority=" + getAuthority() + ", userName=" + getUserName() + ", account=" + getAccount() + ", expiresIn=" + getExpiresIn() + ", license=" + getLicense() + ")";
    }
 
    public String getAccessToken() {
        return this.accessToken;
    }
 
    public String getTokenType() {
        return this.tokenType;
    }
 
    public String getAvatar() {
        return this.avatar;
    }
 
    public String getAuthority() {
        return this.authority;
    }
 
    public String getUserName() {
        return this.userName;
    }
 
    public String getAccount() {
        return this.account;
    }
 
    public long getExpiresIn() {
        return this.expiresIn;
    }
 
    public String getLicense() {
        return this.license;
    }
}