1 Star 0 Fork 0

BOBO/电商竞品分析核心库

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tencent_sms.go 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
zhouyp 提交于 2024-07-10 14:55 . 初始化服务
package enums
type TencentSmsInternational uint64
type TencentSmsStatusCode int
const (
TencentSmsInternationalChina TencentSmsInternational = 0
TencentSmsInternationalHMTC TencentSmsInternational = 1
TencentSmsInternationalAll TencentSmsInternational = 3
TencentSmsStatusCodeAF TencentSmsStatusCode = -1
TencentSmsStatusCodeAE TencentSmsStatusCode = 0
TencentSmsStatusCodeAR TencentSmsStatusCode = 1
TencentSmsStatusCodeTE TencentSmsStatusCode = 2
)
// Fmt 腾讯短信类型
func (i TencentSmsInternational) Fmt() string {
switch i {
case TencentSmsInternationalChina:
return `国内短信`
case TencentSmsInternationalHMTC:
return `国际/港澳台短信`
case TencentSmsInternationalAll:
return `国内短信也支持国际/港澳台短信`
default:
return ``
}
}
// Fmt 腾讯短信模板状态
func (c TencentSmsStatusCode) Fmt() string {
switch c {
case TencentSmsStatusCodeAF:
return `审核未通过`
case TencentSmsStatusCodeAE:
return `审核通过已生效`
case TencentSmsStatusCodeAR:
return `审核中`
case TencentSmsStatusCodeTE:
return `审核通过生效中`
default:
return ``
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/bobo-rs/ecomp-analyzer-services.git
git@gitee.com:bobo-rs/ecomp-analyzer-services.git
bobo-rs
ecomp-analyzer-services
电商竞品分析核心库
v1.0.0

搜索帮助