|
|
@ -4,6 +4,8 @@ import lombok.AllArgsConstructor;
|
|
|
|
import lombok.Data;
|
|
|
|
import lombok.Data;
|
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Objects;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 腾讯短信参数
|
|
|
|
* 腾讯短信参数
|
|
|
|
* <p>
|
|
|
|
* <p>
|
|
|
@ -42,4 +44,41 @@ public class TencentSmsAccount extends SmsAccount {
|
|
|
|
private String smsSdkAppId;
|
|
|
|
private String smsSdkAppId;
|
|
|
|
private String templateId;
|
|
|
|
private String templateId;
|
|
|
|
private String signName;
|
|
|
|
private String signName;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 重写equals方法
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @param o
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public boolean equals(Object o) {
|
|
|
|
|
|
|
|
if (this == o) {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (o == null || getClass() != o.getClass()) {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!super.equals(o)) {
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
TencentSmsAccount that = (TencentSmsAccount) o;
|
|
|
|
|
|
|
|
return url.equals(that.url) &&
|
|
|
|
|
|
|
|
region.equals(that.region) &&
|
|
|
|
|
|
|
|
secretId.equals(that.secretId) &&
|
|
|
|
|
|
|
|
secretKey.equals(that.secretKey) &&
|
|
|
|
|
|
|
|
smsSdkAppId.equals(that.smsSdkAppId) &&
|
|
|
|
|
|
|
|
templateId.equals(that.templateId) &&
|
|
|
|
|
|
|
|
signName.equals(that.signName);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 重写hashCode方法
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public int hashCode() {
|
|
|
|
|
|
|
|
return Objects.hash(super.hashCode(), url, region, secretId, secretKey, smsSdkAppId, templateId, signName);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|