Documentation ¶
Index ¶
- type AliSms
- func (a *AliSms) SendSms(phoneNumber string, templateName string, params utils.M) (*AliSmsRes, error)
- func (a *AliSms) SendSmsMulti(phoneList []string, signList []string, templateName string, params []utils.M) (*AliSmsRes, error)
- func (a *AliSms) SetSignName(sign_name string)
- func (a *AliSms) Sign(data utils.M) (sign string, query_str string)
- type AliSmsConfig
- type AliSmsRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliSms ¶
type AliSms struct {
// contains filtered or unexported fields
}
阿里短信发送
func (*AliSms) SendSms ¶
func (a *AliSms) SendSms(phoneNumber string, templateName string, params utils.M) (*AliSmsRes, error)
发送短信
type AliSmsConfig ¶
type AliSmsConfig struct { AccessID string `json:"access_id" yaml:"access_id"` AccessKey string `json:"access_key" yaml:"access_key"` RegionID string `json:"region_id" yaml:"region_id"` Template string `json:"template" yaml:"template"` SignName string `json:"sign_name" yaml:"sign_name"` }
短信配置
Click to show internal directories.
Click to hide internal directories.