mengwang

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback struct {
	MsgID      int64  `json:"msgid"`
	Num        int    `json:"pknum"`
	Total      int    `json:"pktotal"`
	Mobile     string `json:"mobile"`
	SendTime   string `json:"stime"`
	ReportTime string `json:"rtime"`
	Status     string `json:"errcode"`
	Desc       string `json:"errdesc"`
}

Callback .

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client .

func NewClient

func NewClient(c *conf.Config) *Client

NewClient new MengWang.

func (*Client) Callback

func (v *Client) Callback(ctx context.Context, user, pwd, url string, count int) (callbacks []*Callback, err error)

Callback .

func (*Client) GetPid

func (v *Client) GetPid() int32

GetPid gets MengWang type ID.

func (*Client) SendActSms

func (v *Client) SendActSms(ctx context.Context, r *smsmdl.ModelSend) (msgid string, err error)

SendActSms sends MengWang act sms.

func (*Client) SendBatchActSms

func (v *Client) SendBatchActSms(ctx context.Context, r *smsmdl.ModelSend) (msgid string, err error)

SendBatchActSms sends multi MengWang act sms.

func (*Client) SendInternationalSms

func (v *Client) SendInternationalSms(ctx context.Context, r *smsmdl.ModelSend) (msgid string, err error)

SendInternationalSms sends MengWang international sms.

func (*Client) SendSms

func (v *Client) SendSms(ctx context.Context, r *smsmdl.ModelSend) (msgid string, err error)

SendSms sends MengWang sms.

Jump to

Keyboard shortcuts

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