Documentation
¶
Overview ¶
对阿里大鱼短信接口的简单封装。
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // IsDebug切换到沙箱环境 IsDebug bool Appkey string AppSecret string )
Functions ¶
Types ¶
type Result ¶
type Result struct { Success bool `json:"success,omitempty"` // 成功失败信息 ResultError *resultError `json:"error_response"` // 返回错误 ResultModel *resultModel `json:"alibaba_aliqin_fc_sms_num_send_response"` // 返回正确 }
Result 用于描述发送短信的结果
func SendBatch ¶
SendBatch 短信单条发送的接口 moblie-手机号码 ','隔开 signname-短信签名 templatecode-短信模板 param-传入参数 返回Result格式,请确保输出成功失败的结构体引用,如果Result.Success为true则获取Result.ResultError报错
func SendLecall ¶
SendLecall 文本转语音的接口 moblie-手机号码 templatecode-短信模板 param-传入参数 返回Result格式,请确保输出成功失败的结构体引用,如果Result.Success为true则获取Result.ResultError报错
Click to show internal directories.
Click to hide internal directories.