Documentation ¶
Index ¶
- type Ali
- func (ali *Ali) Provide(ctx context.Context) interface{}
- func (ali *Ali) SendSMS(phone, code string) error
- func (ali *Ali) SendSMSWithParams(phone string, params map[string]interface{}) error
- func (ali *Ali) SendSMSWithSignAndTemplate(phone string, signName string, template string, params map[string]interface{}) error
- func (ali *Ali) SendSMSWithTemplate(phone string, template string, params map[string]interface{}) error
- type AliOption
- type AliOptions
- type SMSCode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ali ¶
func (*Ali) SendSMSWithParams ¶
SendSMSWithParams 发送验证码指定参数名
func (*Ali) SendSMSWithSignAndTemplate ¶
func (ali *Ali) SendSMSWithSignAndTemplate(phone string, signName string, template string, params map[string]interface{}) error
SendSMSWithSignAndTemplate 发送验证码指定短信签名、模版及参数 https://next.api.aliyun.com/api/Dysmsapi/2017-05-25/SendSms?lang=GO¶ms={}
type AliOption ¶
type AliOption func(*AliOptions)
func WithAccessKeyId ¶
func WithAccessKeySecret ¶
func WithEndpoint ¶
func WithSignName ¶
func WithTempCode ¶
type AliOptions ¶
type SMSCode ¶
type SMSCode interface { SendSMS(phone, code string) error // 发送短信验证码 SendSMSWithParams(phone string, values map[string]interface{}) error // 发送短信指定参数 SendSMSWithTemplate(phone string, template string, params map[string]interface{}) error // 发送短信指定模版及参数 SendSMSWithSignAndTemplate(phone string, signName string, template string, params map[string]interface{}) error // 发送短信指定短信签名、模版及参数 }
Click to show internal directories.
Click to hide internal directories.