mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-01-24 03:29:05 +08:00
41 lines
1.0 KiB
Go
41 lines
1.0 KiB
Go
// Package consts
|
|
// @Link https://github.com/bufanyun/hotgo
|
|
// @Copyright Copyright (c) 2023 HotGo CLI
|
|
// @Author Ms <133814250@qq.com>
|
|
// @License https://github.com/bufanyun/hotgo/blob/master/LICENSE
|
|
package consts
|
|
|
|
// 短信驱动
|
|
|
|
const (
|
|
SmsDriveAliYun = "aliyun" // 阿里云
|
|
SmsDriveTencent = "tencent" // 腾讯云
|
|
)
|
|
|
|
// 短信内置模板
|
|
const (
|
|
SmsTemplateCode = "code" // 通用验证码
|
|
SmsTemplateLogin = "login" // 登录
|
|
SmsTemplateRegister = "register" // 注册
|
|
SmsTemplateResetPwd = "resetPwd" // 重置密码
|
|
SmsTemplateBind = "bind" // 绑定手机号
|
|
SmsTemplateCash = "cash" // 申请提现
|
|
)
|
|
|
|
var (
|
|
SmsTemplateEventMap = map[string]string{
|
|
SmsTemplateCode: "通用验证码",
|
|
SmsTemplateLogin: "登录",
|
|
SmsTemplateRegister: "注册",
|
|
SmsTemplateResetPwd: "重置密码",
|
|
SmsTemplateBind: "绑定手机号",
|
|
SmsTemplateCash: "申请提现",
|
|
}
|
|
)
|
|
|
|
// 验证码状态
|
|
const (
|
|
SmsStatusNotUsed = 1 // 未使用
|
|
SmsStatusUsed = 2 // 已使用
|
|
)
|