Versions in this module Expand all Collapse all v1 v1.0.1 May 22, 2019 Changes in this version + const InfoTypeAuthorized + const InfoTypeUnauthorized + const InfoTypeUpdateAuthorized + const InfoTypeVerifyTicket + type InfoType string type MixMessage + AppID string + AuthorizationCode string + AuthorizationCodeExpiredTime int64 + AuthorizerAppid string + ComponentVerifyTicket string + InfoType InfoType + PreAuthCode string v1.0.0 Sep 24, 2018 Changes in this version + const EventClick + const EventLocation + const EventLocationSelect + const EventPicPhotoOrAlbum + const EventPicSysphoto + const EventPicWeixin + const EventScan + const EventScancodePush + const EventScancodeWaitmsg + const EventSubscribe + const EventTemplateSendJobFinish + const EventUnsubscribe + const EventView + const MsgTypeEvent + const MsgTypeImage + const MsgTypeLink + const MsgTypeLocation + const MsgTypeMusic + const MsgTypeNews + const MsgTypeShortVideo + const MsgTypeText + const MsgTypeTransfer + const MsgTypeVideo + const MsgTypeVoice + var ErrInvalidReply = errors.New("无效的回复消息") + var ErrUnsupportReply = errors.New("不支持的回复消息") + type Article struct + Description string + PicURL string + Title string + URL string + func NewArticle(title, description, picURL, url string) *Article + type CommonToken struct + CreateTime int64 + FromUserName string + MsgType MsgType + ToUserName string + XMLName xml.Name + func (msg *CommonToken) SetCreateTime(createTime int64) + func (msg *CommonToken) SetFromUserName(fromUserName string) + func (msg *CommonToken) SetMsgType(msgType MsgType) + func (msg *CommonToken) SetToUserName(toUserName string) + type EncryptedXMLMsg struct + EncryptedMsg string + ToUserName string + XMLName struct{} + type EventPic struct + PicMd5Sum string + type EventType string + type Image struct + Image struct{ ... } + func NewImage(mediaID string) *Image + type MixMessage struct + Content string + Description string + Event EventType + EventKey string + Format string + Label string + Latitude string + LocationX float64 + LocationY float64 + Longitude string + MediaID string + MenuID string + MsgID int64 + PicURL string + Precision string + Recognition string + Scale float64 + ScanCodeInfo struct{ ... } + SendLocationInfo struct{ ... } + SendPicsInfo struct{ ... } + SessionFrom string + Status string + ThumbMediaID string + Ticket string + Title string + URL string + type MsgType string + type Music struct + Music struct{ ... } + func NewMusic(title, description, musicURL, hQMusicURL, thumbMediaID string) *Music + type News struct + ArticleCount int + Articles []*Article + func NewNews(articles []*Article) *News + type Reply struct + MsgData interface{} + MsgType MsgType + type ResponseEncryptedXMLMsg struct + EncryptedMsg string + MsgSignature string + Nonce string + Timestamp int64 + XMLName struct{} + type Text struct + Content string + func NewText(content string) *Text + type TransInfo struct + KfAccount string + type TransferCustomer struct + TransInfo *TransInfo + func NewTransferCustomer(KfAccount string) *TransferCustomer + type Video struct + Video struct{ ... } + func NewVideo(mediaID, title, description string) *Video + type Voice struct + Voice struct{ ... } + func NewVoice(mediaID string) *Voice