Versions in this module Expand all Collapse all v2 v2.1.8 May 9, 2024 v2.1.7 Nov 2, 2023 Changes in this version + const ConfirmReceiveMethodAuto + const ConfirmReceiveMethodManual + const DataTypeJSON + const DataTypeXML + const EventSubscribeMsgChange + const EventSubscribeMsgSent + const EventSubscribePopup + const EventTypeAddExpressPath + const EventTypeSecvodAudit + const EventTypeSecvodUpload + const EventTypeTradeManageOrderSettlement + const EventTypeTradeManageRemindAccessAPI + const EventTypeTradeManageRemindShipping + const EventTypeWxaMediaCheck + const EventTypeXpayCoinPayNotify + const EventTypeXpayGoodsDeliverNotify + const MsgTypeEvent + const MsgTypeImage + const MsgTypeLink + const MsgTypeMiniProgramPage + const MsgTypeText + var ErrInvalidReply = errors.New("无效的回复信息") + var ErrUnsupportedReply = errors.New("不支持的回复消息") + type CoinInfo struct + ActualPrice int64 + Attach string + OrigPrice int64 + Quantity int + type CommonPushData struct + CreateTime int64 + Event EventType + FromUserName string + MsgType MsgType + ToUserName string + XMLName xml.Name + type CommonToken struct + CreateTime int64 + FromUserName string + MsgType MsgType + ToUserName string + XMLName xml.Name + type ConfirmReceiveMethod int8 + type CustomerMessage struct + Image *MediaResource + Link *MediaLink + Miniprogrampage *MediaMiniprogrampage + Msgtype MsgType + Text *MediaText + ToUser string + func NewCustomerImgMessage(toUser, mediaID string) *CustomerMessage + func NewCustomerLinkMessage(toUser, title, description, url, thumbURL string) *CustomerMessage + func NewCustomerMiniprogrampageMessage(toUser, title, pagepath, thumbMediaID string) *CustomerMessage + func NewCustomerTextMessage(toUser, text string) *CustomerMessage + type DataReceived struct + Encrypt string + type DramaAuditDetail struct + AuditTime int64 + CreateTime int64 + Status int + type EventType string + type GoodsInfo struct + ActualPrice int64 + Attach string + OrigPrice int64 + ProductID string + Quantity int + type InfoType string + const InfoTypeAcceptSubscribeMessage + const InfoTypeRejectSubscribeMessage + type Manager struct + func NewCustomerMessageManager(context *context.Context) *Manager + func (manager *Manager) Send(msg *CustomerMessage) error + type MediaCheckAsyncData struct + Appid string + Detail []*MediaCheckDetail + Errcode int + Errmsg string + Result MediaCheckAsyncResult + TraceID string + Version int + type MediaCheckAsyncResult struct + Label security.CheckLabel + Suggest security.CheckSuggest + type MediaCheckDetail struct + Errcode int + Label int + Prob int + Strategy string + Suggest security.CheckSuggest + type MediaLink struct + Description string + ThumbURL string + Title string + URL string + type MediaMiniprogrampage struct + Appid string + Pagepath string + ThumbMediaID string + Title string + type MediaResource struct + MediaID string + type MediaText struct + Content string + type MiniProgramMixMessage struct + AppID string + Content string + Event string + MediaID string + MsgID int64 + PagePath string + PicURL string + SessionFrom string + ThumbMediaID string + ThumbURL string + Title string + type MsgType string + type PushData interface + type PushDataAddExpressPath struct + Actions []*PushDataAddExpressPathAction + Count int + DeliveryID string + OrderID string + Version int + WayBillID string + type PushDataAddExpressPathAction struct + ActionMsg string + ActionTime int64 + ActionType int + type PushDataOrderSettlement struct + ConfirmReceiveMethod ConfirmReceiveMethod + ConfirmReceiveTime int64 + EstimatedSettlementTime int64 + MerchantID string + MerchantTradeNo string + PayTime int64 + SettlementTime int64 + ShippedTime int64 + SubMerchantID string + TransactionID string + type PushDataRemindAccessAPI struct + Msg string + type PushDataRemindShipping struct + MerchantID string + MerchantTradeNo string + Msg string + PayTime int64 + SubMerchantID string + TransactionID string + type PushDataSecVodAudit struct + AuditEvent SecVodAuditEvent + type PushDataSecVodUpload struct + UploadEvent SecVodUploadEvent + type PushDataSubscribeMsgChange struct + SubscribeMsgChangeEvent SubscribeMsgChangeEvent + func (s *PushDataSubscribeMsgChange) GetSubscribeMsgChangeEvents() []SubscribeMsgChangeList + func (s *PushDataSubscribeMsgChange) SetSubscribeMsgChangeEvents(list []SubscribeMsgChangeList) + type PushDataSubscribeMsgSent struct + SubscribeMsgSentEvent SubscribeMsgSentEvent + func (s *PushDataSubscribeMsgSent) GetSubscribeMsgSentEvents() []SubscribeMsgSentList + func (s *PushDataSubscribeMsgSent) SetSubscribeMsgSentEvents(list []SubscribeMsgSentList) + type PushDataSubscribePopup struct + SubscribeMsgPopupEvent SubscribeMsgPopupEvent + func (s *PushDataSubscribePopup) GetSubscribeMsgPopupEvents() []SubscribeMsgPopupEventList + func (s *PushDataSubscribePopup) SetSubscribeMsgPopupEvents(list []SubscribeMsgPopupEventList) + type PushDataXpayCoinPayNotify struct + CoinInfo CoinInfo + Env int + OpenID string + OutTradeNo string + WeChatPayInfo WeChatPayInfo + type PushDataXpayGoodsDeliverNotify struct + Env int + GoodsInfo GoodsInfo + OpenID string + OutTradeNo string + WeChatPayInfo WeChatPayInfo + type PushReceiver struct + func NewPushReceiver(ctx *context.Context) *PushReceiver + func (receiver *PushReceiver) GetMsg(r *http.Request) (string, []byte, error) + func (receiver *PushReceiver) GetMsgData(r *http.Request) (MsgType, EventType, PushData, error) + type Reply struct + MsgData interface{} + MsgType MsgType + type SecVodAuditEvent struct + AuditDetail DramaAuditDetail + DramaID string + SourceContext string + type SecVodUploadEvent struct + Errcode int + Errmsg string + MediaID string + SourceContext string + type SubscribeMsgChangeEvent struct + List []SubscribeMsgChangeList + type SubscribeMsgChangeList struct + SubscribeStatusString string + TemplateID string + type SubscribeMsgPopupEvent struct + List []SubscribeMsgPopupEventList + type SubscribeMsgPopupEventList struct + PopupScene string + SubscribeStatusString string + TemplateID string + type SubscribeMsgSentEvent struct + List []SubscribeMsgSentList + type SubscribeMsgSentList struct + ErrorCode int + ErrorStatus string + MsgID string + TemplateID string + type WeChatPayInfo struct + MchOrderNo string + PaidTime int64 + TransactionID string v2.1.6-rc.4 Nov 2, 2023 v2.1.6-rc.3 Nov 2, 2023