# 创蓝SMS
# 核心配置
# Yaml配置
# ========================= HaiChuang Settings =========================
haichuang:
sdk:
chuanglansms:
# ApiAccount
api-account: xxx
# ApiPassword
api-password: xxx
# 请求Host, 此处只填写域名
host: xxx
# 默认短信签名, 可为空
default-sign-name: xxx
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
# 核心Service
# ChuangLanSmsService (opens new window)
全限定名:pro.haichuang.framework.sdk.chuanglansms.service.ChuangLanSmsService (opens new window)
创蓝SMS核心Service
该类为创蓝SMS核心Service,封装了常用的方法
警告
所有SMS相关操作必须使用ChuangLanSmsService接口
# DefaultChuangLanSmsServiceImpl (opens new window)
全限定名:pro.haichuang.framework.sdk.chuanglansms.service.DefaultChuangLanSmsServiceImpl (opens new window)
创蓝SMS核心Service默认实现
该类为创蓝SMS核心Service默认实现,已默认注入到Spring中,支持自定义实现(需要手动注入到Spring中)
# 核心工具类
# ChuangLanSmsUtils (opens new window)
全限定名:pro.haichuang.framework.sdk.chuanglansms.util.ChuangLanSmsUtils (opens new window)
创蓝SMS工具类
该类为创蓝SMS工具类,基于第三方二次封装,推荐使用ChuangLanSmsService进行操作
# 👇Example👇
@RestController
@RequestMapping("/test")
public class TestController {
@Autowired
private ChuangLanSmsService chuangLanSmsService;
......
}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9