init
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package com.newyetai.sdk.sms.service;
|
||||
|
||||
import com.newyetai.common.AlitaResult;
|
||||
import com.newyetai.sdk.sms.constant.SmsProviderEnum;
|
||||
import com.newyetai.sdk.sms.dto.ISendDTO;
|
||||
|
||||
/**
|
||||
* 短信服务提供者
|
||||
*
|
||||
* @author sr on 2020-07-03
|
||||
*/
|
||||
public interface SdkSmsProvider {
|
||||
|
||||
/**
|
||||
* 提供者类型
|
||||
*
|
||||
* @return
|
||||
* @author sr on 2020-07-03
|
||||
*/
|
||||
SmsProviderEnum getType();
|
||||
|
||||
/**
|
||||
* 发送短信
|
||||
*
|
||||
* @param <T>
|
||||
* @param iSendDTO
|
||||
* @return
|
||||
* @author sr on 2020-07-03
|
||||
*/
|
||||
<T> AlitaResult<Boolean> send(ISendDTO<T> iSendDTO);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user