Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServiceGroupApp = new(ServiceGroup)
Functions ¶
func CreateClient ¶
func CreateClient(accessKeyId *string, accessKeySecret *string) (_result *dysmsapi20170525.Client, _err error)
*
- 使用AK&SK初始化账号Client
- @param accessKeyId
- @param accessKeySecret
- @return Client
- @throws Exception
Types ¶
type AliSmsService ¶
type AliSmsService struct{}
func (*AliSmsService) SendAliSms ¶
func (e *AliSmsService) SendAliSms(phones []string, templateParam string) (err error)
模板使用json字符串 {"code":"xxx"} 对应你模板里面的变量key和value
type ServiceGroup ¶
type ServiceGroup struct {
AliSmsService
}
Click to show internal directories.
Click to hide internal directories.