2023-05-10 23:54:50 +08:00
|
|
|
// 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
|
2023-01-25 11:49:21 +08:00
|
|
|
package consts
|
|
|
|
|
|
|
|
// 短信驱动
|
|
|
|
|
|
|
|
const (
|
|
|
|
SmsDriveAliYun = "aliyun" // 阿里云
|
|
|
|
SmsDriveTencent = "tencent" // 腾讯云
|
|
|
|
)
|
|
|
|
|
|
|
|
// 短信内置模板
|
|
|
|
const (
|
|
|
|
SmsTemplateCode = "code" // 通用验证码
|
|
|
|
SmsTemplateLogin = "login" // 登录
|
|
|
|
SmsTemplateRegister = "register" // 注册
|
|
|
|
SmsTemplateResetPwd = "resetPwd" // 重置密码
|
|
|
|
SmsTemplateBind = "bind" // 绑定手机号
|
|
|
|
SmsTemplateCash = "cash" // 申请提现
|
|
|
|
)
|
|
|
|
|
2023-04-10 15:31:08 +08:00
|
|
|
var (
|
|
|
|
SmsTemplateEventMap = map[string]string{
|
|
|
|
SmsTemplateCode: "通用验证码",
|
|
|
|
SmsTemplateLogin: "登录",
|
|
|
|
SmsTemplateRegister: "注册",
|
|
|
|
SmsTemplateResetPwd: "重置密码",
|
|
|
|
SmsTemplateBind: "绑定手机号",
|
|
|
|
SmsTemplateCash: "申请提现",
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
2023-02-08 20:29:34 +08:00
|
|
|
// 验证码状态
|
2023-01-25 11:49:21 +08:00
|
|
|
const (
|
|
|
|
SmsStatusNotUsed = 1 // 未使用
|
|
|
|
SmsStatusUsed = 2 // 已使用
|
|
|
|
)
|