broadcast

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broadcast

type Broadcast struct {
	*context.Context
}

Broadcast 群发消息

func NewBroadcast

func NewBroadcast(ctx *context.Context) *Broadcast

NewBroadcast new

func (*Broadcast) Delete

func (broadcast *Broadcast) Delete(msgID int64, articleIDx int64) error

Delete 删除群发消息

func (*Broadcast) GetMass

func (broadcast *Broadcast) GetMass(msgID int64) (res *GetResult, err error)

GetMass 查询状态

func (*Broadcast) PreviewOpenid

func (broadcast *Broadcast) PreviewOpenid(openid string, params util.Params) (err error)

PreviewOpenid openid微信号的预览

func (*Broadcast) PreviewWxName

func (broadcast *Broadcast) PreviewWxName(name string, params util.Params) (err error)

PreviewWxName wxname微信号的预览

func (*Broadcast) SendAll

func (broadcast *Broadcast) SendAll(params util.Params) (res *Result, err error)

SendAll 根据标签进行群发

func (*Broadcast) SendByOpenID

func (broadcast *Broadcast) SendByOpenID(params util.Params) (res *Result, err error)

SendByOpenID 根据标签进行群发

func (*Broadcast) Speed

func (broadcast *Broadcast) Speed(speed, realspeed int64) (err error)

Speed 速度控制

type GetResult

type GetResult struct {
	util.CommonError
	MsgID     int64  `json:"msg_id"`
	MsgStatus string `json:"msg_status"`
}

GetResult 状态查询返回

type Result

type Result struct {
	util.CommonError
	MsgID     int64 `json:"msg_id"`
	MsgDataID int64 `json:"msg_data_id"`
}

Result 群发返回结果

Jump to

Keyboard shortcuts

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