feat: rebind mobile

This commit is contained in:
zzw
2026-10-21 13:29:03 +08:00
parent 113756fd46
commit 6107ac8d9d
47 changed files with 2210 additions and 289 deletions
+6 -4
View File
@@ -9,8 +9,9 @@ import (
type TemplateKind string
const (
TemplateCode TemplateKind = "code"
TemplatePassword TemplateKind = "password"
TemplateCode TemplateKind = "code"
TemplatePassword TemplateKind = "password"
TemplateRebindMobile TemplateKind = "rebind_mobile"
)
type SMS interface {
@@ -51,8 +52,9 @@ func New(cfg Config) (SMS, error) {
return &client{
sender: sender,
templates: map[TemplateKind]string{
TemplateCode: cfg.TemplateCode,
TemplatePassword: cfg.TemplatePwd,
TemplateCode: cfg.TemplateCode,
TemplatePassword: cfg.TemplatePwd,
TemplateRebindMobile: cfg.TemplateCode,
},
timeout: cfg.Timeout,
}, nil