Documentation ¶
Index ¶
Constants ¶
View Source
const ( TemplatePwd TemplateNofity )
Variables ¶
This section is empty.
Functions ¶
func ChineseMobile ¶
Types ¶
type MessageContent ¶
type SmsSecurity ¶
type SmsSecurity struct { ID string `yaml:"id"` Key string `yaml:"key"` AppID string `yaml:"appid"` Sign string `yaml:"sign"` PwdTemplateID string `yaml:"pwd_templateid"` NotifyTemplateID string `yaml:"notify_templateid"` }
func LoadSmsSecurity ¶
func LoadSmsSecurity(filepath string) (theSmsSecurity SmsSecurity, err error)
type SmsService ¶
type SmsService interface {
SendSMS(msg MessageContent) (resp string, err error)
}
func NewSmsTencentCloudService ¶
func NewSmsTencentCloudService(ss SmsSecurity) SmsService
type SmsTencentCloudService ¶
type SmsTencentCloudService struct {
// contains filtered or unexported fields
}
func (SmsTencentCloudService) SendSMS ¶
func (smsService SmsTencentCloudService) SendSMS(msg MessageContent) (resp string, err error)
Click to show internal directories.
Click to hide internal directories.