Skip to content

Commit

Permalink
增加订阅通知事件 (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
ixugo authored Nov 15, 2021
1 parent dc24ad4 commit 566c3c2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions officialaccount/message/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ const (
EventMassSendJobFinish = "MASSSENDJOBFINISH"
// EventWxaMediaCheck 异步校验图片/音频是否含有违法违规内容推送事件
EventWxaMediaCheck = "wxa_media_check"
// EventSubscribeMsgPopupEvent 订阅通知事件推送
EventSubscribeMsgPopupEvent = "subscribe_msg_popup_event"
)

const (
Expand Down Expand Up @@ -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"`
Expand Down Expand Up @@ -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"`
Expand Down

0 comments on commit 566c3c2

Please sign in to comment.