33 lines
562 B
Java
33 lines
562 B
Java
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);
|
|
|
|
}
|