Documentation ¶
Index ¶
- func AddTemplate(addTemplate *Template) error
- func DeleteTemplate(templateCode string) error
- func GetSendStatus(phone string, sendResp *dysmsapi.SendSmsResponse) error
- func GetTemplateList(list *[]Template) error
- func InitSMSConfig(conf *SMSConfig) error
- func SendSMS(smsData SMSParam, msgCode string) (err error)
- func SendSMSByData(smsData SMSCustParam) (err error)
- type SMSConfig
- type SMSCustParam
- type SMSParam
- type Template
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTemplate ¶
func DeleteTemplate ¶
func GetSendStatus ¶
func GetSendStatus(phone string, sendResp *dysmsapi.SendSmsResponse) error
GetSendStatus 查询短信发送结果 @phone 手机号码 @sendResp 发送短信响应
func GetTemplateList ¶
func InitSMSConfig ¶
func SendSMSByData ¶
func SendSMSByData(smsData SMSCustParam) (err error)
Types ¶
type SMSCustParam ¶
type SMSCustParam struct { Phone []string `common:"手机号"` Param map[string]string `common:"短信参数(占位符的key与value)"` Code string `common:"短信模板Code"` }
SMSCustParam 自定义短信参数
type Template ¶
type Template struct { AuditStatus *string `json:"auditStatus,omitempty" xml:"AuditStatus,omitempty"` CreateDate *string `json:"createDate,omitempty" xml:"CreateDate,omitempty"` OrderId *string `json:"orderId,omitempty" xml:"OrderId,omitempty"` Reason *dysmsapi.QuerySmsTemplateListResponseBodySmsTemplateListReason `json:"reason,omitempty" xml:"Reason,omitempty" type:"Struct"` TemplateCode *string `json:"templateCode,omitempty" xml:"TemplateCode,omitempty"` TemplateContent *string `json:"templateContent,omitempty" xml:"TemplateContent,omitempty"` TemplateName *string `json:"templateName,omitempty" xml:"TemplateName,omitempty"` TemplateType *int32 `json:"templateType"` }
Click to show internal directories.
Click to hide internal directories.