mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-13 01:02:27 +08:00
增加订阅通知事件 (#509)
This commit is contained in:
@@ -73,6 +73,8 @@ const (
|
|||||||
EventMassSendJobFinish = "MASSSENDJOBFINISH"
|
EventMassSendJobFinish = "MASSSENDJOBFINISH"
|
||||||
// EventWxaMediaCheck 异步校验图片/音频是否含有违法违规内容推送事件
|
// EventWxaMediaCheck 异步校验图片/音频是否含有违法违规内容推送事件
|
||||||
EventWxaMediaCheck = "wxa_media_check"
|
EventWxaMediaCheck = "wxa_media_check"
|
||||||
|
// EventSubscribeMsgPopupEvent 订阅通知事件推送
|
||||||
|
EventSubscribeMsgPopupEvent = "subscribe_msg_popup_event"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@@ -144,6 +146,10 @@ type MixMessage struct {
|
|||||||
Poiname string `xml:"Poiname"`
|
Poiname string `xml:"Poiname"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SubscribeMsgPopupEvent []struct {
|
||||||
|
List SubscribeMsgPopupEvent `xml:"List"`
|
||||||
|
} `xml:"SubscribeMsgPopupEvent"`
|
||||||
|
|
||||||
// 第三方平台相关
|
// 第三方平台相关
|
||||||
InfoType InfoType `xml:"InfoType"`
|
InfoType InfoType `xml:"InfoType"`
|
||||||
AppID string `xml:"AppId"`
|
AppID string `xml:"AppId"`
|
||||||
@@ -183,6 +189,13 @@ type MixMessage struct {
|
|||||||
device.MsgDevice
|
device.MsgDevice
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SubscribeMsgPopupEvent 订阅通知事件推送的消息体
|
||||||
|
type SubscribeMsgPopupEvent struct {
|
||||||
|
TemplateID string `xml:"TemplateId"`
|
||||||
|
SubscribeStatusString string `xml:"SubscribeStatusString"`
|
||||||
|
PopupScene int `xml:"PopupScene"`
|
||||||
|
}
|
||||||
|
|
||||||
// EventPic 发图事件推送
|
// EventPic 发图事件推送
|
||||||
type EventPic struct {
|
type EventPic struct {
|
||||||
PicMd5Sum string `xml:"PicMd5Sum"`
|
PicMd5Sum string `xml:"PicMd5Sum"`
|
||||||
|
|||||||
Reference in New Issue
Block a user