Documentation ¶
Overview ¶
预览接口的消息数据结构.
Index ¶
Constants ¶
View Source
const ( MsgTypeText = "text" MsgTypeImage = "image" MsgTypeVoice = "voice" MsgTypeVideo = "mpvideo" MsgTypeNews = "mpnews" MsgTypeWxCard = "wxcard" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { MessageHeader Image struct { MediaId string `json:"media_id"` } `json:"image"` }
type MessageHeader ¶
type News ¶
type News struct { MessageHeader News struct { MediaId string `json:"media_id"` } `json:"mpnews"` }
图文消息
type Text ¶
type Text struct { MessageHeader Text struct { Content string `json:"content"` } `json:"text"` }
type Video ¶
type Video struct { MessageHeader Video struct { MediaId string `json:"media_id"` } `json:"mpvideo"` }
type Voice ¶
type Voice struct { MessageHeader Voice struct { MediaId string `json:"media_id"` } `json:"voice"` }
type WxCard ¶
type WxCard struct { MessageHeader WxCard struct { CardId string `json:"card_id"` CardExt string `json:"card_ext,omitempty"` } `json:"wxcard"` }
卡券消息
func NewWxCard2 ¶
新建卡券, 特别注意: 目前该接口仅支持填入非自定义code的卡券和预存模式的自定义code卡券.
Click to show internal directories.
Click to hide internal directories.