yangys
2024-04-01 86cdd920b68274185233383f69ddb974052b6b6f
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
package com.qianwen.smartman.modules.system.entity;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.List;
import com.qianwen.core.tool.support.Kv;
 
@ApiModel(value = "UserInfo", description = "用户信息")
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/entity/UserInfo.class */
public class UserInfo implements Serializable {
    private static final long serialVersionUID = 1;
    @ApiModelProperty("用户")
    private User user;
    @ApiModelProperty("拓展信息")
    private Kv detail;
    @ApiModelProperty("权限集合")
    private List<String> permissions;
    @ApiModelProperty("角色集合")
    private List<String> roles;
    @ApiModelProperty("第三方授权id")
    private String oauthId;
 
    public void setUser(final User user) {
        this.user = user;
    }
 
    public void setDetail(final Kv detail) {
        this.detail = detail;
    }
 
    public void setPermissions(final List<String> permissions) {
        this.permissions = permissions;
    }
 
    public void setRoles(final List<String> roles) {
        this.roles = roles;
    }
 
    public void setOauthId(final String oauthId) {
        this.oauthId = oauthId;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof UserInfo) {
            UserInfo other = (UserInfo) o;
            if (other.canEqual(this)) {
                Object this$user = getUser();
                Object other$user = other.getUser();
                if (this$user == null) {
                    if (other$user != null) {
                        return false;
                    }
                } else if (!this$user.equals(other$user)) {
                    return false;
                }
                Object this$detail = getDetail();
                Object other$detail = other.getDetail();
                if (this$detail == null) {
                    if (other$detail != null) {
                        return false;
                    }
                } else if (!this$detail.equals(other$detail)) {
                    return false;
                }
                Object this$permissions = getPermissions();
                Object other$permissions = other.getPermissions();
                if (this$permissions == null) {
                    if (other$permissions != null) {
                        return false;
                    }
                } else if (!this$permissions.equals(other$permissions)) {
                    return false;
                }
                Object this$roles = getRoles();
                Object other$roles = other.getRoles();
                if (this$roles == null) {
                    if (other$roles != null) {
                        return false;
                    }
                } else if (!this$roles.equals(other$roles)) {
                    return false;
                }
                Object this$oauthId = getOauthId();
                Object other$oauthId = other.getOauthId();
                return this$oauthId == null ? other$oauthId == null : this$oauthId.equals(other$oauthId);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof UserInfo;
    }
 
    public int hashCode() {
        Object $user = getUser();
        int result = (1 * 59) + ($user == null ? 43 : $user.hashCode());
        Object $detail = getDetail();
        int result2 = (result * 59) + ($detail == null ? 43 : $detail.hashCode());
        Object $permissions = getPermissions();
        int result3 = (result2 * 59) + ($permissions == null ? 43 : $permissions.hashCode());
        Object $roles = getRoles();
        int result4 = (result3 * 59) + ($roles == null ? 43 : $roles.hashCode());
        Object $oauthId = getOauthId();
        return (result4 * 59) + ($oauthId == null ? 43 : $oauthId.hashCode());
    }
 
    public String toString() {
        return "UserInfo(user=" + getUser() + ", detail=" + getDetail() + ", permissions=" + getPermissions() + ", roles=" + getRoles() + ", oauthId=" + getOauthId() + ")";
    }
 
    public User getUser() {
        return this.user;
    }
 
    public Kv getDetail() {
        return this.detail;
    }
 
    public List<String> getPermissions() {
        return this.permissions;
    }
 
    public List<String> getRoles() {
        return this.roles;
    }
 
    public String getOauthId() {
        return this.oauthId;
    }
}