提交 | 用户 | 时间
|
97edd7
|
1 |
package com.iailab.module.shasteel.framework.sms.core.client; |
H |
2 |
|
|
3 |
import com.iailab.module.shasteel.framework.sms.core.property.SmsChannelProperties; |
|
4 |
|
|
5 |
/** |
|
6 |
* 短信客户端的工厂接口 |
|
7 |
* |
|
8 |
* @author zzf |
|
9 |
* @since 2021/1/28 14:01 |
|
10 |
*/ |
|
11 |
public interface SmsClientFactory { |
|
12 |
|
|
13 |
/** |
|
14 |
* 获得短信 Client |
|
15 |
* |
|
16 |
* @param channelId 渠道编号 |
|
17 |
* @return 短信 Client |
|
18 |
*/ |
|
19 |
SmsClient getSmsClient(Long channelId); |
|
20 |
|
|
21 |
/** |
|
22 |
* 获得短信 Client |
|
23 |
* |
|
24 |
* @param channelCode 渠道编码 |
|
25 |
* @return 短信 Client |
|
26 |
*/ |
|
27 |
SmsClient getSmsClient(String channelCode); |
|
28 |
|
|
29 |
/** |
|
30 |
* 创建短信 Client |
|
31 |
* |
|
32 |
* @param properties 配置对象 |
|
33 |
*/ |
|
34 |
void createOrUpdateSmsClient(SmsChannelProperties properties); |
|
35 |
|
|
36 |
} |