msg

package
v0.0.0-...-ed8de99 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 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 ScanCodeInfo

type ScanCodeInfo struct {
	ScanType   string
	ScanResult string
}

type SendLocationInfo

type SendLocationInfo struct {
	Location_X float64
	Location_Y float64
	Scale      float64
	Label      string
	Poiname    string
}

type WxMsg

type WxMsg struct {
	ToUserName       string
	FromUserName     string
	CreateTime       int
	MsgType          string
	Content          string
	MsgID            int64
	PicUrl           string
	MediaId          string
	Format           string
	Recognition      string
	ThumbMediaId     string
	Location_X       float64
	Location_Y       float64
	Scale            float64
	Label            string
	Title            string
	Description      string
	Url              string
	Event            string
	EventKey         string
	Ticket           string
	Latitude         float64
	Longitude        float64
	Precision        float64
	Bizmsgmenuid     int `xml:"bizmsgmenuid"`
	MenuId           string
	ScanCodeInfo     ScanCodeInfo
	SendLocationInfo SendLocationInfo
}

todo:菜单事件推送中的图片事件未做处理

type WxRespMsg

type WxRespMsg struct {
	ToUserName   string `xml:"ToUserName"`
	FromUserName string
	CreateTime   int
	MsgType      string
	Content      string
	Image        MediaEntity
	Voice        MediaEntity
	Video        MediaEntity
	Music        MediaEntity
	ArticleCount int
	Articles     []MediaEntity
}

func (WxRespMsg) ConvertToWxXml

func (respMsg WxRespMsg) ConvertToWxXml() string

Jump to

Keyboard shortcuts

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