You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.fanruan.api.util.trans;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 抽象短信体
|
|
|
|
*
|
|
|
|
* @author vito
|
|
|
|
* @since 2019-07-24
|
|
|
|
*/
|
|
|
|
public abstract class BaseSmsBody {
|
|
|
|
private String templateCode;
|
|
|
|
|
|
|
|
public String getTemplateCode() {
|
|
|
|
return templateCode;
|
|
|
|
}
|
|
|
|
|
|
|
|
void setTemplateCode(String templateCode) {
|
|
|
|
this.templateCode = templateCode;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 发送
|
|
|
|
*
|
|
|
|
* @return 发送结果
|
|
|
|
* @throws Exception 发送异常
|
|
|
|
*/
|
|
|
|
public abstract boolean send() throws Exception;
|
|
|
|
}
|