@Component public class AliyunSmsFunctions extends AbstractFunctionRule
| 构造器和说明 |
|---|
AliyunSmsFunctions() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
init() |
protected com.aliyuncs.IAcsClient |
initClient()
初始化短信客户端
|
com.aliyuncs.dysmsapi.model.v20170525.QuerySendDetailsResponse |
querySendDetails(AliyunQueryModel model)
查询某个号码的最近30天的使用情况
|
com.aliyuncs.dysmsapi.model.v20170525.SendBatchSmsResponse |
sendBatchSms(AliyunSendSmsModel model)
发送短信给多个用户
|
com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse |
sendSingleSms(AliyunSendSmsModel model)
发送短信给单个用户
|
@PostConstruct public void init()
public com.aliyuncs.dysmsapi.model.v20170525.SendSmsResponse sendSingleSms(AliyunSendSmsModel model) throws com.aliyuncs.exceptions.ServerException, com.aliyuncs.exceptions.ClientException, cn.minsin.core.exception.MutilsErrorException
model - com.aliyuncs.exceptions.ServerExceptioncom.aliyuncs.exceptions.ClientExceptioncn.minsin.core.exception.MutilsErrorExceptionpublic com.aliyuncs.dysmsapi.model.v20170525.SendBatchSmsResponse sendBatchSms(AliyunSendSmsModel model) throws com.aliyuncs.exceptions.ServerException, com.aliyuncs.exceptions.ClientException, cn.minsin.core.exception.MutilsErrorException
model - 发送短信的modelcom.aliyuncs.exceptions.ServerExceptioncom.aliyuncs.exceptions.ClientExceptioncn.minsin.core.exception.MutilsErrorException - mutils框架内自定义异常public com.aliyuncs.dysmsapi.model.v20170525.QuerySendDetailsResponse querySendDetails(AliyunQueryModel model) throws com.aliyuncs.exceptions.ServerException, com.aliyuncs.exceptions.ClientException
model - com.aliyuncs.exceptions.ServerExceptioncom.aliyuncs.exceptions.ClientExceptionprotected com.aliyuncs.IAcsClient initClient()
Copyright © 2020. All rights reserved.