提交 | 用户 | 时间
|
722af2
|
1 |
package com.dl.sms.config.properties; |
X |
2 |
|
|
3 |
import lombok.Data; |
|
4 |
import org.springframework.boot.context.properties.ConfigurationProperties; |
|
5 |
import org.springframework.stereotype.Component; |
|
6 |
|
|
7 |
/** |
|
8 |
* SMS短信 配置属性 |
|
9 |
* |
|
10 |
* @author Lion Li |
|
11 |
* @version 4.2.0 |
|
12 |
*/ |
|
13 |
@Data |
|
14 |
@Component |
|
15 |
@ConfigurationProperties(prefix = "sms") |
|
16 |
public class SmsProperties { |
|
17 |
|
|
18 |
private Boolean enabled; |
|
19 |
|
|
20 |
/** |
|
21 |
* 配置节点 |
|
22 |
* 阿里云 dysmsapi.aliyuncs.com |
|
23 |
* 腾讯云 sms.tencentcloudapi.com |
|
24 |
*/ |
|
25 |
private String endpoint; |
|
26 |
|
|
27 |
/** |
|
28 |
* key |
|
29 |
*/ |
|
30 |
private String accessKeyId; |
|
31 |
|
|
32 |
/** |
|
33 |
* 密匙 |
|
34 |
*/ |
|
35 |
private String accessKeySecret; |
|
36 |
|
|
37 |
/* |
|
38 |
* 短信签名 |
|
39 |
*/ |
|
40 |
private String signName; |
|
41 |
|
|
42 |
/** |
|
43 |
* 短信应用ID (腾讯专属) |
|
44 |
*/ |
|
45 |
private String sdkAppId; |
|
46 |
|
|
47 |
} |