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();
|
}
|
}
|