Versions in this module Expand all Collapse all v1 v1.0.0 Jun 27, 2024 Changes in this version + type CallbackExtraInfoInterface interface + GetEventType func() string + GetMessageType func() string + GetTypeKey func() string + ParseFromJson func(data []byte) (CallbackExtraInfoInterface, error) + type CallbackHandler struct + func NewCallbackHandler(token string, encodingAESKey string) (*CallbackHandler, error) + func (cb *CallbackHandler) EchoTestHandler(rw http.ResponseWriter, r *http.Request) + func (cb *CallbackHandler) GetCallbackMsg(r *http.Request) (CallbackMessage, error) + type CallbackMessage struct + CreateTime int64 + EventType EventType + Extras CallbackExtraInfoInterface + FromUserName string + MsgID int64 + MsgType MessageType + OriginalMessage string + ToUserName string + func (m CallbackMessage) GetStructName() string + func (m CallbackMessage) GetTypeKey() string + func (m CallbackMessage) ParseMessageFromJson(body []byte) (CallbackMessage, error) + type ChannelsEcAcctNotify struct + AccountInfo struct{ ... } + CreateTime int + Event string + MsgType string + ToUserName string + func (ChannelsEcAcctNotify) GetEventType() string + func (ChannelsEcAcctNotify) GetMessageType() string + func (ChannelsEcAcctNotify) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m ChannelsEcAcctNotify) GetTypeKey() string + type ChannelsEcAftersaleUpdate struct + CreateTime int + Event string + FinderShopAftersaleStatusUpdate struct{ ... } + FromUserName string + MsgType string + ToUserName string + func (ChannelsEcAftersaleUpdate) GetEventType() string + func (ChannelsEcAftersaleUpdate) GetMessageType() string + func (ChannelsEcAftersaleUpdate) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m ChannelsEcAftersaleUpdate) GetTypeKey() string + type ChannelsEcBrand struct + BrandEvent struct{ ... } + CreateTime int + Event string + FromUserName string + MsgType string + ToUserName string + func (ChannelsEcBrand) GetEventType() string + func (ChannelsEcBrand) GetMessageType() string + func (ChannelsEcBrand) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m ChannelsEcBrand) GetTypeKey() string + type ChannelsEcComplaintUpdate struct + CreateTime int + Event string + FinderShopComplaint struct{ ... } + FromUserName string + MsgType string + ToUserName string + func (ChannelsEcComplaintUpdate) GetEventType() string + func (ChannelsEcComplaintUpdate) GetMessageType() string + func (ChannelsEcComplaintUpdate) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m ChannelsEcComplaintUpdate) GetTypeKey() string + type ChannelsEcCouponReceive struct + CreateTime int64 + Event string + FromUserName string + MsgType string + ReceiveInfo struct{ ... } + ToUserName string + func (ChannelsEcCouponReceive) GetEventType() string + func (ChannelsEcCouponReceive) GetMessageType() string + func (ChannelsEcCouponReceive) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m ChannelsEcCouponReceive) GetTypeKey() string + type ChannelsEcOrderCancel struct + CreateTime int64 + Event string + FromUserName string + MsgType string + OrderInfo struct{ ... } + ToUserName string + func (ChannelsEcOrderCancel) GetEventType() string + func (ChannelsEcOrderCancel) GetMessageType() string + func (ChannelsEcOrderCancel) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m ChannelsEcOrderCancel) GetTypeKey() string + type ChannelsEcOrderConfirm struct + CreateTime int64 + Event string + FromUserName string + MsgType string + OrderInfo struct{ ... } + ToUserName string + func (ChannelsEcOrderConfirm) GetEventType() string + func (ChannelsEcOrderConfirm) GetMessageType() string + func (ChannelsEcOrderConfirm) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m ChannelsEcOrderConfirm) GetTypeKey() string + type ChannelsEcOrderDeliver struct + CreateTime int64 + Event string + FromUserName string + MsgType string + OrderInfo struct{ ... } + ToUserName string + func (ChannelsEcOrderDeliver) GetEventType() string + func (ChannelsEcOrderDeliver) GetMessageType() string + func (ChannelsEcOrderDeliver) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m ChannelsEcOrderDeliver) GetTypeKey() string + type ChannelsEcOrderExtInfoUpdate struct + CreateTime int64 + Event string + FromUserName string + MsgType string + OrderInfo struct{ ... } + ToUserName string + func (ChannelsEcOrderExtInfoUpdate) GetEventType() string + func (ChannelsEcOrderExtInfoUpdate) GetMessageType() string + func (ChannelsEcOrderExtInfoUpdate) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m ChannelsEcOrderExtInfoUpdate) GetTypeKey() string + type ChannelsEcOrderNew struct + CreateTime int64 + Event string + FromUserName string + MsgType string + OrderInfo struct{ ... } + ToUserName string + func (ChannelsEcOrderNew) GetEventType() string + func (ChannelsEcOrderNew) GetMessageType() string + func (ChannelsEcOrderNew) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m ChannelsEcOrderNew) GetTypeKey() string + type ChannelsEcOrderPay struct + CreateTime int64 + Event string + FromUserName string + MsgType string + OrderInfo struct{ ... } + ToUserName string + func (ChannelsEcOrderPay) GetEventType() string + func (ChannelsEcOrderPay) GetMessageType() string + func (ChannelsEcOrderPay) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m ChannelsEcOrderPay) GetTypeKey() string + type ChannelsEcOrderSettle struct + CreateTime int64 + Event string + FromUserName string + MsgType string + OrderInfo struct{ ... } + ToUserName string + func (ChannelsEcOrderSettle) GetEventType() string + func (ChannelsEcOrderSettle) GetMessageType() string + func (ChannelsEcOrderSettle) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m ChannelsEcOrderSettle) GetTypeKey() string + type ChannelsEcWithdrawNotify struct + CreateTime int + Event string + MsgType string + ToUserName string + WithdrawInfo struct{ ... } + func (ChannelsEcWithdrawNotify) GetEventType() string + func (ChannelsEcWithdrawNotify) GetMessageType() string + func (ChannelsEcWithdrawNotify) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m ChannelsEcWithdrawNotify) GetTypeKey() string + type EventProductSpuAudit struct + CreateTime int64 + Event string + FromUserName string + MsgType string + ProductSpuAudit struct{ ... } + ToUserName string + func (EventProductSpuAudit) GetEventType() string + func (EventProductSpuAudit) GetMessageType() string + func (EventProductSpuAudit) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m EventProductSpuAudit) GetTypeKey() string + type EventProductSpuListing struct + CreateTime int64 + Event string + FromUserName string + MsgType string + ProductSpuAudit struct{ ... } + ToUserName string + func (EventProductSpuListing) GetEventType() string + func (EventProductSpuListing) GetMessageType() string + func (EventProductSpuListing) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m EventProductSpuListing) GetTypeKey() string + type EventProductSpuUpdate struct + CreateTime int64 + Event string + FromUserName string + MsgType string + ProductSpuUpdate struct{ ... } + ToUserName string + func (EventProductSpuUpdate) GetEventType() string + func (EventProductSpuUpdate) GetMessageType() string + func (EventProductSpuUpdate) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m EventProductSpuUpdate) GetTypeKey() string + type EventType string + const EventTypeChannelsEcAcctNotify + const EventTypeChannelsEcAftersaleUpdate + const EventTypeChannelsEcBrand + const EventTypeChannelsEcComplaintUpdate + const EventTypeChannelsEcCouponReceive + const EventTypeChannelsEcOrderCancel + const EventTypeChannelsEcOrderConfirm + const EventTypeChannelsEcOrderDeliver + const EventTypeChannelsEcOrderExtInfoUpdate + const EventTypeChannelsEcOrderNew + const EventTypeChannelsEcOrderPay + const EventTypeChannelsEcOrderSettle + const EventTypeChannelsEcWithdrawNotify + const EventTypeProductCategoryAudit + const EventTypeProductSpuAudit + const EventTypeProductSpuListing + const EventTypeProductSpuUpdate + const EventTypeQrcodeStatus + type MessageType string + const MessageTypeEvent + const MessageTypeImage + const MessageTypeLink + const MessageTypeLocation + const MessageTypeText + const MessageTypeUnknown + const MessageTypeVideo + const MessageTypeVoice + type ProductCategoryAudit struct + CreateTime int + Event string + FromUserName string + MsgType string + ProductCategoryAudit struct{ ... } + ToUserName string + func (ProductCategoryAudit) GetEventType() string + func (ProductCategoryAudit) GetMessageType() string + func (ProductCategoryAudit) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m ProductCategoryAudit) GetTypeKey() string + type ProductOrderStatusUpdate struct + CreateTime int64 + Event string + FromUserName string + MsgType string + ProductOrderStatusUpdate struct{ ... } + ToUserName string + func (ProductOrderStatusUpdate) GetEventType() string + func (ProductOrderStatusUpdate) GetMessageType() string + func (ProductOrderStatusUpdate) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m ProductOrderStatusUpdate) GetTypeKey() string + type QrcodeStatus struct + CreateTime int + Event string + MsgType string + QrcodeInfo struct{ ... } + ToUserName string + func (QrcodeStatus) GetEventType() string + func (QrcodeStatus) GetMessageType() string + func (QrcodeStatus) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error) + func (m QrcodeStatus) GetTypeKey() string