template_message

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 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 TemplateMessage

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

TemplateMessage 小程序模板消息

func New

func (*TemplateMessage) Send

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

Send 发送订阅消息

Jump to

Keyboard shortcuts

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