shortMessageService

package
v0.0.0-...-cee649a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TemplatePwd
	TemplateNofity
)

Variables

This section is empty.

Functions

func ChineseMobile

func ChineseMobile(m string) string

Types

type MessageContent

type MessageContent struct {
	PhoneNumberSet   []string
	TemplateParamSet []string
	TemplateType     int
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL