yangys
2024-03-28 25475f31cd0d52ff328bbea9e80f15647dedd80b
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
package com.qianwen.smartman.modules.auth.vo;
 
import com.qianwen.smartman.modules.sync.constant.OuterAppConfigConstant;
import com.qianwen.smartman.modules.sync.entity.OuterAppConfig;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/auth/vo/AuthConfigVO.class */
public class AuthConfigVO {
    private String appid;
    private String agentId;
    private String corpId;
    private Integer appType;
    private String domain;
 
    public void setAppid(final String appid) {
        this.appid = appid;
    }
 
    public void setAgentId(final String agentId) {
        this.agentId = agentId;
    }
 
    public void setCorpId(final String corpId) {
        this.corpId = corpId;
    }
 
    public void setAppType(final Integer appType) {
        this.appType = appType;
    }
 
    public void setDomain(final String domain) {
        this.domain = domain;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof AuthConfigVO) {
            AuthConfigVO other = (AuthConfigVO) o;
            if (other.canEqual(this)) {
                Object this$appType = getAppType();
                Object other$appType = other.getAppType();
                if (this$appType == null) {
                    if (other$appType != null) {
                        return false;
                    }
                } else if (!this$appType.equals(other$appType)) {
                    return false;
                }
                Object this$appid = getAppid();
                Object other$appid = other.getAppid();
                if (this$appid == null) {
                    if (other$appid != null) {
                        return false;
                    }
                } else if (!this$appid.equals(other$appid)) {
                    return false;
                }
                Object this$agentId = getAgentId();
                Object other$agentId = other.getAgentId();
                if (this$agentId == null) {
                    if (other$agentId != null) {
                        return false;
                    }
                } else if (!this$agentId.equals(other$agentId)) {
                    return false;
                }
                Object this$corpId = getCorpId();
                Object other$corpId = other.getCorpId();
                if (this$corpId == null) {
                    if (other$corpId != null) {
                        return false;
                    }
                } else if (!this$corpId.equals(other$corpId)) {
                    return false;
                }
                Object this$domain = getDomain();
                Object other$domain = other.getDomain();
                return this$domain == null ? other$domain == null : this$domain.equals(other$domain);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof AuthConfigVO;
    }
 
    public int hashCode() {
        Object $appType = getAppType();
        int result = (1 * 59) + ($appType == null ? 43 : $appType.hashCode());
        Object $appid = getAppid();
        int result2 = (result * 59) + ($appid == null ? 43 : $appid.hashCode());
        Object $agentId = getAgentId();
        int result3 = (result2 * 59) + ($agentId == null ? 43 : $agentId.hashCode());
        Object $corpId = getCorpId();
        int result4 = (result3 * 59) + ($corpId == null ? 43 : $corpId.hashCode());
        Object $domain = getDomain();
        return (result4 * 59) + ($domain == null ? 43 : $domain.hashCode());
    }
 
    public String toString() {
        return "AuthConfigVO(appid=" + getAppid() + ", agentId=" + getAgentId() + ", corpId=" + getCorpId() + ", appType=" + getAppType() + ", domain=" + getDomain() + ")";
    }
 
    public String getAppid() {
        return this.appid;
    }
 
    public String getAgentId() {
        return this.agentId;
    }
 
    public String getCorpId() {
        return this.corpId;
    }
 
    public Integer getAppType() {
        return this.appType;
    }
 
    public String getDomain() {
        return this.domain;
    }
 
    public AuthConfigVO(OuterAppConfig outerAppConfig) {
        if (outerAppConfig.getAppType().equals(OuterAppConfigConstant.DING)) {
            this.appid = outerAppConfig.getDingAppKey();
            this.agentId = outerAppConfig.getDingAgentId();
            this.corpId = outerAppConfig.getDingCorpId();
        } else {
            this.appid = outerAppConfig.getWxCorpId();
            this.agentId = outerAppConfig.getWxAgentId();
        }
        this.appType = outerAppConfig.getAppType();
        this.domain = outerAppConfig.getDomainUrl();
    }
}