From 566c3c27cbb9721dd9e14d4770841df6089477c4 Mon Sep 17 00:00:00 2001 From: ixugo <59127546+ixugo@users.noreply.github.com> Date: Mon, 15 Nov 2021 17:06:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AE=A2=E9=98=85=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E4=BA=8B=E4=BB=B6=20(#509)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- officialaccount/message/message.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/officialaccount/message/message.go b/officialaccount/message/message.go index f6f255f..4635a1e 100644 --- a/officialaccount/message/message.go +++ b/officialaccount/message/message.go @@ -73,6 +73,8 @@ const ( EventMassSendJobFinish = "MASSSENDJOBFINISH" // EventWxaMediaCheck 异步校验图片/音频是否含有违法违规内容推送事件 EventWxaMediaCheck = "wxa_media_check" + // EventSubscribeMsgPopupEvent 订阅通知事件推送 + EventSubscribeMsgPopupEvent = "subscribe_msg_popup_event" ) const ( @@ -144,6 +146,10 @@ type MixMessage struct { Poiname string `xml:"Poiname"` } + SubscribeMsgPopupEvent []struct { + List SubscribeMsgPopupEvent `xml:"List"` + } `xml:"SubscribeMsgPopupEvent"` + // 第三方平台相关 InfoType InfoType `xml:"InfoType"` AppID string `xml:"AppId"` @@ -183,6 +189,13 @@ type MixMessage struct { device.MsgDevice } +// SubscribeMsgPopupEvent 订阅通知事件推送的消息体 +type SubscribeMsgPopupEvent struct { + TemplateID string `xml:"TemplateId"` + SubscribeStatusString string `xml:"SubscribeStatusString"` + PopupScene int `xml:"PopupScene"` +} + // EventPic 发图事件推送 type EventPic struct { PicMd5Sum string `xml:"PicMd5Sum"`