1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-23 13:42:25 +08:00

Merge branch 'v2' into miniapp-program-subscribe-server

This commit is contained in:
houseme
2023-10-11 08:55:59 -05:00
committed by GitHub
214 changed files with 17130 additions and 1125 deletions

View File

@@ -12,16 +12,20 @@ type EventType string
type InfoType string
const (
//MsgTypeText 文本消息
// MsgTypeText 文本消息
MsgTypeText MsgType = "text"
//MsgTypeImage 图片消息
// MsgTypeImage 图片消息
MsgTypeImage = "image"
//MsgTypeLink 图文链接
// MsgTypeLink 图文链接
MsgTypeLink = "link"
//MsgTypeMiniProgramPage 小程序卡片
// MsgTypeMiniProgramPage 小程序卡片
MsgTypeMiniProgramPage = "miniprogrampage"
//MsgTypeEvent 表示事件推送消息
MsgTypeEvent = "event"
// MsgTypeEvent 事件
MsgTypeEvent MsgType = "event"
// DataTypeXML XML格式数据
DataTypeXML = "xml"
// DataTypeJSON JSON格式数据
DataTypeJSON = "json"
)
const (
@@ -87,6 +91,7 @@ type MiniProgramMixMessage struct {
} `xml:"SubscribeMsgSentEvent"`
}
// SubscribeMessageList 订阅消息事件列表
type SubscribeMessageList struct {
TemplateId string `xml:"TemplateId"`
SubscribeStatusString string `xml:"SubscribeStatusString"`