feat: rebind mobile
This commit is contained in:
+6
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user