123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- package event
-
- // TextMessage 文本消息
- type TextMessage struct {
- AuthorizerEvent
- Content CDATA `xml:"Content"`
- MsgID int64 `xml:"MsgId"`
-
- // BizMsgMenuID 发送客服文本消息的时候用户的响应
- BizMsgMenuID int `xml:"bizmsgmenuid"`
- }
-
- // TextReplyMessage 回复文本消息
- type TextReplyMessage struct {
- AuthorizerEvent
- Content CDATA `xml:"Content"`
- }
-
- // ImageMessage 图片消息
- type ImageMessage struct {
- AuthorizerEvent
- PicURL CDATA `xml:"PicUrl"`
- MediaID CDATA `xml:"MediaId"`
- MsgID int64 `xml:"MsgId"`
- }
-
- // ImageReplyMessage 回复图片消息
- type ImageReplyMessage struct {
- AuthorizerEvent
- MediaID CDATA `xml:"Image>MediaId"`
- }
-
- // VoiceMessage 语音消息
- type VoiceMessage struct {
- AuthorizerEvent
- MediaID CDATA `xml:"MediaId"`
- Format CDATA `xml:"Format"`
- Recognition CDATA `xml:"Recognition"`
- MsgID int64 `xml:"MsgId"`
- }
-
- // VoiceReplyMessage 回复语音消息
- type VoiceReplyMessage struct {
- AuthorizerEvent
- MediaID CDATA `xml:"Voice>MediaId"`
- }
-
- // VideoMessage 视频消息
- type VideoMessage struct {
- AuthorizerEvent
- MediaID CDATA `xml:"MediaId"`
- ThumbMediaID CDATA `xml:"ThumbMediaId"`
- MsgID int64 `xml:"MsgId"`
- }
-
- // VideoReplyMessage 回复视频消息
- type VideoReplyMessage struct {
- AuthorizerEvent
- MediaID CDATA `xml:"Video>MediaId"`
- Title CDATA `xml:"Video>Title"`
- Description CDATA `xml:"Video>Description"`
- }
-
- // MusicReplyMessage 回复音乐消息
- type MusicReplyMessage struct {
- AuthorizerEvent
- Title CDATA `xml:"Music>Title"`
- Description CDATA `xml:"Video>Description"`
- MusicURL CDATA `xml:"Video>MusicUrl"`
- HQMusicURL CDATA `xml:"Video>HQMusicUrl"`
- ThumbMediaID CDATA `xml:"Video>ThumbMediaId"`
- }
-
- // ShortVideoMessage 小视频消息
- type ShortVideoMessage struct {
- AuthorizerEvent
- MediaID CDATA `xml:"MediaId"`
- ThumbMediaID CDATA `xml:"ThumbMediaId"`
- MsgID int64 `xml:"MsgId"`
- }
-
- // LocationMessage 地理位置消息
- type LocationMessage struct {
- AuthorizerEvent
- LocationX float64 `xml:"Location_X"`
- LocationY float64 `xml:"Location_Y"`
- Scale int `xml:"Scale"`
- Label CDATA `xml:"Label"`
- MsgID int64 `xml:"MsgId"`
- }
-
- // LinkMessage 链接消息
- type LinkMessage struct {
- AuthorizerEvent
- Title CDATA `xml:"Title"`
- Description CDATA `xml:"Description"`
- URL CDATA `xml:"Url"`
- MsgID int64 `xml:"MsgId"`
- }
-
- // ItemMessage 回复图文消息的单独一个item
- type ItemMessage struct {
- Title CDATA `xml:"Title"`
- Description CDATA `xml:"Description"`
- PicURL CDATA `xml:"PicUrl"`
- URL CDATA `xml:"Url"`
- }
-
- // NewsReplyMessage 回复图文消息
- type NewsReplyMessage struct {
- AuthorizerEvent
- ArticleCount int `xml:"ArticleCount"`
- Articles []ItemMessage `xml:"Articles>item"`
- }
|