message

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 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 Body

type Body struct {
	ToUser           string                `json:"touser"`
	TemplateId       string                `json:"template_id"`
	Path             string                `json:"path"`
	Data             map[string]*DataValue `json:"data,omitempty"`
	MiniProgramState string                `json:"miniprogram_state"`
	Lang             string                `json:"lang"`
}

Body 消息体

type DataValue

type DataValue struct {
	Value string `json:"value"`
}

type Message

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

Message 小程序订阅消息

func New

func New(account contracts.AccountInterface) *Message

func (*Message) Send

func (m *Message) Send(message Body) error

Send 发送订阅消息

Jump to

Keyboard shortcuts

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