sms

package
v0.0.0-...-bd7d7c7 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IHuYiSMSService

type IHuYiSMSService struct {
	Domain   string
	Account  string
	Password string
}

* @description: IHuYiSMSService Struct @attribute Domain: IHuYi Url @attribute Account: IHuYi Account @attribute Password: IHuYi Password

func (*IHuYiSMSService) SMS

func (s *IHuYiSMSService) SMS(mobile, message string, params map[string]string) error

* @description: Send Message To Mobile @param mobile: Mobile @param message: Message @param params: param @return: error of nil

type ISMSService

type ISMSService interface {
	SMS(mobile, message string, params map[string]string) error
}

* @description: SMSService Interface @method SMS: Send Messages To Mobile

func NewIHuYiSMSService

func NewIHuYiSMSService(account, password string) ISMSService

* @description: NewIHuYiSMSService @param account: IHuYi Account @param password: IHuYi Password @return: IHuYiSMSService

type SubmitResult

type SubmitResult struct {
	Xmlns string `xml:"xmlns,attr"`
	Code  int    `xml:"code"`
	Msg   string `xml:"msg"`
	SmsId string `xml:"smsid"`
}

* @description: Submit Result Struct @attribute Xmlns: Xmlns @attribute Code: Code @attribute Msg: Msg @attribute SmsId: SmsId

Jump to

Keyboard shortcuts

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