Documentation
¶
Index ¶
- type CallbackExtraInfoInterface
- type CallbackHandler
- type CallbackMessage
- type ChannelsEcAcctNotify
- type ChannelsEcAftersaleUpdate
- type ChannelsEcBrand
- type ChannelsEcComplaintUpdate
- type ChannelsEcCouponCreate
- type ChannelsEcCouponDelete
- type ChannelsEcCouponExpire
- type ChannelsEcCouponInfoChange
- type ChannelsEcCouponInvalid
- type ChannelsEcCouponReceive
- type ChannelsEcOrderCancel
- type ChannelsEcOrderConfirm
- type ChannelsEcOrderDeliver
- type ChannelsEcOrderExtInfoUpdate
- type ChannelsEcOrderNew
- type ChannelsEcOrderPay
- type ChannelsEcOrderSettle
- type ChannelsEcUserCouponExpire
- type ChannelsEcUserCouponUnuse
- type ChannelsEcUserCouponUse
- type ChannelsEcWithdrawNotify
- type EventProductSpuAudit
- type EventProductSpuListing
- type EventProductSpuUpdate
- type EventType
- type MessageType
- type ProductCategoryAudit
- type ProductOrderStatusUpdate
- type QrcodeStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackExtraInfoInterface ¶ added in v1.0.3
type CallbackHandler ¶ added in v1.0.3
type CallbackHandler struct {
// contains filtered or unexported fields
}
func NewCallbackHandler ¶
func NewCallbackHandler(token string, encodingAESKey string) (*CallbackHandler, error)
func (*CallbackHandler) EchoTestHandler ¶ added in v1.0.3
func (cb *CallbackHandler) EchoTestHandler(rw http.ResponseWriter, r *http.Request)
后台回调配置URL,申请校验
func (*CallbackHandler) GetCallbackMsg ¶ added in v1.0.3
func (cb *CallbackHandler) GetCallbackMsg(r *http.Request) (CallbackMessage, error)
解析并获取回调数据
type CallbackMessage ¶
type CallbackMessage struct { // ToUserName 接收成员 ToUserName string `json:"ToUserName"` // FromUserName 发送成员 FromUserName string `json:"FromUserName"` // CreateTime 消息创建时间,秒级时间戳 CreateTime int64 `json:"CreateTime"` // MsgType 消息类型 MsgType MessageType `json:"MsgType"` // MsgID 消息id,64位整型 MsgID int64 `json:"MsgId"` // EventType 事件类型 MsgType为event存在 EventType EventType `json:"Event"` // 额外的信息 Extras CallbackExtraInfoInterface `json:"-"` // 原始回调内容,方便排查问题 OriginalMessage string `json:"OriginalMessage"` }
CallbackMessage 一条接收到的消息
func (CallbackMessage) GetStructName ¶
func (m CallbackMessage) GetStructName() string
func (CallbackMessage) GetTypeKey ¶
func (m CallbackMessage) GetTypeKey() string
func (CallbackMessage) ParseMessageFromJson ¶
func (m CallbackMessage) ParseMessageFromJson(body []byte) (CallbackMessage, error)
type ChannelsEcAcctNotify ¶ added in v1.0.0
type ChannelsEcAcctNotify struct { CreateTime int `json:"CreateTime"` Event string `json:"Event"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` AccountInfo struct { Event int `json:"event"` } `json:"account_info"` }
func (ChannelsEcAcctNotify) GetEventType ¶ added in v1.0.0
func (ChannelsEcAcctNotify) GetEventType() string
func (ChannelsEcAcctNotify) GetMessageType ¶ added in v1.0.0
func (ChannelsEcAcctNotify) GetMessageType() string
func (ChannelsEcAcctNotify) GetTypeKey ¶ added in v1.0.0
func (m ChannelsEcAcctNotify) GetTypeKey() string
func (ChannelsEcAcctNotify) ParseFromJson ¶ added in v1.0.0
func (ChannelsEcAcctNotify) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcAftersaleUpdate ¶ added in v1.0.0
type ChannelsEcAftersaleUpdate struct { CreateTime int `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` FinderShopAftersaleStatusUpdate struct { AfterSaleOrderID string `json:"after_sale_order_id"` OrderID string `json:"order_id"` Status string `json:"status"` } `json:"finder_shop_aftersale_status_update"` }
func (ChannelsEcAftersaleUpdate) GetEventType ¶ added in v1.0.0
func (ChannelsEcAftersaleUpdate) GetEventType() string
func (ChannelsEcAftersaleUpdate) GetMessageType ¶ added in v1.0.0
func (ChannelsEcAftersaleUpdate) GetMessageType() string
func (ChannelsEcAftersaleUpdate) GetTypeKey ¶ added in v1.0.0
func (m ChannelsEcAftersaleUpdate) GetTypeKey() string
func (ChannelsEcAftersaleUpdate) ParseFromJson ¶ added in v1.0.0
func (ChannelsEcAftersaleUpdate) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcBrand ¶ added in v1.0.0
type ChannelsEcBrand struct { BrandEvent struct { AuditID string `json:"audit_id"` BrandID string `json:"brand_id"` Reason string `json:"reason"` Status int `json:"status"` } `json:"BrandEvent"` CreateTime int `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` }
func (ChannelsEcBrand) GetEventType ¶ added in v1.0.0
func (ChannelsEcBrand) GetEventType() string
func (ChannelsEcBrand) GetMessageType ¶ added in v1.0.0
func (ChannelsEcBrand) GetMessageType() string
func (ChannelsEcBrand) GetTypeKey ¶ added in v1.0.0
func (m ChannelsEcBrand) GetTypeKey() string
func (ChannelsEcBrand) ParseFromJson ¶ added in v1.0.0
func (ChannelsEcBrand) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcComplaintUpdate ¶ added in v1.0.0
type ChannelsEcComplaintUpdate struct { CreateTime int `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` FinderShopComplaint struct { AfterSaleOrderID string `json:"after_sale_order_id"` ComplaintID string `json:"complaint_id"` ComplaintStatus int `json:"complaint_status"` OrderID string `json:"order_id"` } `json:"finder_shop_complaint"` }
func (ChannelsEcComplaintUpdate) GetEventType ¶ added in v1.0.0
func (ChannelsEcComplaintUpdate) GetEventType() string
func (ChannelsEcComplaintUpdate) GetMessageType ¶ added in v1.0.0
func (ChannelsEcComplaintUpdate) GetMessageType() string
func (ChannelsEcComplaintUpdate) GetTypeKey ¶ added in v1.0.0
func (m ChannelsEcComplaintUpdate) GetTypeKey() string
func (ChannelsEcComplaintUpdate) ParseFromJson ¶ added in v1.0.0
func (ChannelsEcComplaintUpdate) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcCouponCreate ¶ added in v1.1.8
type ChannelsEcCouponCreate struct { CreateTime int `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` CouponInfo struct { CouponID string `json:"coupon_id"` CreateTime string `json:"create_time"` } `json:"coupon_info"` }
func (ChannelsEcCouponCreate) GetEventType ¶ added in v1.1.8
func (ChannelsEcCouponCreate) GetEventType() string
func (ChannelsEcCouponCreate) GetMessageType ¶ added in v1.1.8
func (ChannelsEcCouponCreate) GetMessageType() string
func (ChannelsEcCouponCreate) GetTypeKey ¶ added in v1.1.8
func (m ChannelsEcCouponCreate) GetTypeKey() string
func (ChannelsEcCouponCreate) ParseFromJson ¶ added in v1.1.8
func (ChannelsEcCouponCreate) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcCouponDelete ¶ added in v1.1.8
type ChannelsEcCouponDelete struct { CreateTime int `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` CouponInfo struct { CouponID string `json:"coupon_id"` DeleteTime string `json:"delete_time"` } `json:"coupon_info"` }
func (ChannelsEcCouponDelete) GetEventType ¶ added in v1.1.8
func (ChannelsEcCouponDelete) GetEventType() string
func (ChannelsEcCouponDelete) GetMessageType ¶ added in v1.1.8
func (ChannelsEcCouponDelete) GetMessageType() string
func (ChannelsEcCouponDelete) GetTypeKey ¶ added in v1.1.8
func (m ChannelsEcCouponDelete) GetTypeKey() string
func (ChannelsEcCouponDelete) ParseFromJson ¶ added in v1.1.8
func (ChannelsEcCouponDelete) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcCouponExpire ¶ added in v1.1.8
type ChannelsEcCouponExpire struct { CreateTime int `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` CouponInfo struct { CouponID string `json:"coupon_id"` ExpireTime string `json:"expire_time"` } `json:"coupon_info"` }
func (ChannelsEcCouponExpire) GetEventType ¶ added in v1.1.8
func (ChannelsEcCouponExpire) GetEventType() string
func (ChannelsEcCouponExpire) GetMessageType ¶ added in v1.1.8
func (ChannelsEcCouponExpire) GetMessageType() string
func (ChannelsEcCouponExpire) GetTypeKey ¶ added in v1.1.8
func (m ChannelsEcCouponExpire) GetTypeKey() string
func (ChannelsEcCouponExpire) ParseFromJson ¶ added in v1.1.8
func (ChannelsEcCouponExpire) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcCouponInfoChange ¶ added in v1.1.8
type ChannelsEcCouponInfoChange struct { CreateTime int `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` CouponInfo struct { ChangeTime string `json:"change_time"` CouponID string `json:"coupon_id"` } `json:"coupon_info"` }
func (ChannelsEcCouponInfoChange) GetEventType ¶ added in v1.1.8
func (ChannelsEcCouponInfoChange) GetEventType() string
func (ChannelsEcCouponInfoChange) GetMessageType ¶ added in v1.1.8
func (ChannelsEcCouponInfoChange) GetMessageType() string
func (ChannelsEcCouponInfoChange) GetTypeKey ¶ added in v1.1.8
func (m ChannelsEcCouponInfoChange) GetTypeKey() string
func (ChannelsEcCouponInfoChange) ParseFromJson ¶ added in v1.1.8
func (ChannelsEcCouponInfoChange) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcCouponInvalid ¶ added in v1.1.8
type ChannelsEcCouponInvalid struct { CreateTime int `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` CouponInfo struct { CouponID string `json:"coupon_id"` InvalidTime string `json:"invalid_time"` } `json:"coupon_info"` }
func (ChannelsEcCouponInvalid) GetEventType ¶ added in v1.1.8
func (ChannelsEcCouponInvalid) GetEventType() string
func (ChannelsEcCouponInvalid) GetMessageType ¶ added in v1.1.8
func (ChannelsEcCouponInvalid) GetMessageType() string
func (ChannelsEcCouponInvalid) GetTypeKey ¶ added in v1.1.8
func (m ChannelsEcCouponInvalid) GetTypeKey() string
func (ChannelsEcCouponInvalid) ParseFromJson ¶ added in v1.1.8
func (ChannelsEcCouponInvalid) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcCouponReceive ¶ added in v1.0.0
type ChannelsEcCouponReceive struct { CreateTime int64 `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` ReceiveInfo struct { CouponID string `json:"coupon_id"` ReceiveTime string `json:"receive_time"` UserCouponID string `json:"user_coupon_id"` } `json:"receive_info"` }
func (ChannelsEcCouponReceive) GetEventType ¶ added in v1.0.0
func (ChannelsEcCouponReceive) GetEventType() string
func (ChannelsEcCouponReceive) GetMessageType ¶ added in v1.0.0
func (ChannelsEcCouponReceive) GetMessageType() string
func (ChannelsEcCouponReceive) GetTypeKey ¶ added in v1.0.0
func (m ChannelsEcCouponReceive) GetTypeKey() string
func (ChannelsEcCouponReceive) ParseFromJson ¶ added in v1.0.0
func (ChannelsEcCouponReceive) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcOrderCancel ¶ added in v1.0.0
type ChannelsEcOrderCancel struct { CreateTime int64 `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` OrderInfo struct { CancelType int64 `json:"cancel_type"` OrderID string `json:"order_id"` } `json:"order_info"` }
func (ChannelsEcOrderCancel) GetEventType ¶ added in v1.0.0
func (ChannelsEcOrderCancel) GetEventType() string
func (ChannelsEcOrderCancel) GetMessageType ¶ added in v1.0.0
func (ChannelsEcOrderCancel) GetMessageType() string
func (ChannelsEcOrderCancel) GetTypeKey ¶ added in v1.0.0
func (m ChannelsEcOrderCancel) GetTypeKey() string
func (ChannelsEcOrderCancel) ParseFromJson ¶ added in v1.0.0
func (ChannelsEcOrderCancel) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcOrderConfirm ¶ added in v1.0.0
type ChannelsEcOrderConfirm struct { CreateTime int64 `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` OrderInfo struct { ConfirmType int64 `json:"confirm_type"` OrderID string `json:"order_id"` } `json:"order_info"` }
func (ChannelsEcOrderConfirm) GetEventType ¶ added in v1.0.0
func (ChannelsEcOrderConfirm) GetEventType() string
func (ChannelsEcOrderConfirm) GetMessageType ¶ added in v1.0.0
func (ChannelsEcOrderConfirm) GetMessageType() string
func (ChannelsEcOrderConfirm) GetTypeKey ¶ added in v1.0.0
func (m ChannelsEcOrderConfirm) GetTypeKey() string
func (ChannelsEcOrderConfirm) ParseFromJson ¶ added in v1.0.0
func (ChannelsEcOrderConfirm) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcOrderDeliver ¶ added in v1.0.0
type ChannelsEcOrderDeliver struct { CreateTime int64 `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` OrderInfo struct { FinishDelivery int64 `json:"finish_delivery"` OrderID string `json:"order_id"` } `json:"order_info"` }
func (ChannelsEcOrderDeliver) GetEventType ¶ added in v1.0.0
func (ChannelsEcOrderDeliver) GetEventType() string
func (ChannelsEcOrderDeliver) GetMessageType ¶ added in v1.0.0
func (ChannelsEcOrderDeliver) GetMessageType() string
func (ChannelsEcOrderDeliver) GetTypeKey ¶ added in v1.0.0
func (m ChannelsEcOrderDeliver) GetTypeKey() string
func (ChannelsEcOrderDeliver) ParseFromJson ¶ added in v1.0.0
func (ChannelsEcOrderDeliver) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcOrderExtInfoUpdate ¶ added in v1.1.6
type ChannelsEcOrderExtInfoUpdate struct { CreateTime int64 `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` OrderInfo struct { OrderID string `json:"order_id"` Type int64 `json:"type"` } `json:"order_info"` }
func (ChannelsEcOrderExtInfoUpdate) GetEventType ¶ added in v1.1.6
func (ChannelsEcOrderExtInfoUpdate) GetEventType() string
func (ChannelsEcOrderExtInfoUpdate) GetMessageType ¶ added in v1.1.6
func (ChannelsEcOrderExtInfoUpdate) GetMessageType() string
func (ChannelsEcOrderExtInfoUpdate) GetTypeKey ¶ added in v1.1.6
func (m ChannelsEcOrderExtInfoUpdate) GetTypeKey() string
func (ChannelsEcOrderExtInfoUpdate) ParseFromJson ¶ added in v1.1.6
func (ChannelsEcOrderExtInfoUpdate) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcOrderNew ¶ added in v1.0.0
type ChannelsEcOrderNew struct { CreateTime int64 `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` OrderInfo struct { OrderID string `json:"order_id"` } `json:"order_info"` }
func (ChannelsEcOrderNew) GetEventType ¶ added in v1.0.0
func (ChannelsEcOrderNew) GetEventType() string
func (ChannelsEcOrderNew) GetMessageType ¶ added in v1.0.0
func (ChannelsEcOrderNew) GetMessageType() string
func (ChannelsEcOrderNew) GetTypeKey ¶ added in v1.0.0
func (m ChannelsEcOrderNew) GetTypeKey() string
func (ChannelsEcOrderNew) ParseFromJson ¶ added in v1.0.0
func (ChannelsEcOrderNew) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcOrderPay ¶ added in v1.0.0
type ChannelsEcOrderPay struct { CreateTime int64 `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` OrderInfo struct { OrderID string `json:"order_id"` PayTime int64 `json:"pay_time"` } `json:"order_info"` }
func (ChannelsEcOrderPay) GetEventType ¶ added in v1.0.0
func (ChannelsEcOrderPay) GetEventType() string
func (ChannelsEcOrderPay) GetMessageType ¶ added in v1.0.0
func (ChannelsEcOrderPay) GetMessageType() string
func (ChannelsEcOrderPay) GetTypeKey ¶ added in v1.0.0
func (m ChannelsEcOrderPay) GetTypeKey() string
func (ChannelsEcOrderPay) ParseFromJson ¶ added in v1.0.0
func (ChannelsEcOrderPay) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcOrderSettle ¶ added in v1.0.0
type ChannelsEcOrderSettle struct { CreateTime int64 `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` OrderInfo struct { OrderID string `json:"order_id"` SettleTime int64 `json:"settle_time"` } `json:"order_info"` }
func (ChannelsEcOrderSettle) GetEventType ¶ added in v1.0.0
func (ChannelsEcOrderSettle) GetEventType() string
func (ChannelsEcOrderSettle) GetMessageType ¶ added in v1.0.0
func (ChannelsEcOrderSettle) GetMessageType() string
func (ChannelsEcOrderSettle) GetTypeKey ¶ added in v1.0.0
func (m ChannelsEcOrderSettle) GetTypeKey() string
func (ChannelsEcOrderSettle) ParseFromJson ¶ added in v1.0.0
func (ChannelsEcOrderSettle) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcUserCouponExpire ¶ added in v1.1.8
type ChannelsEcUserCouponExpire struct { CreateTime int `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` UserCouponInfo struct { CouponID string `json:"coupon_id"` ExpireTime string `json:"expire_time"` UserCouponID string `json:"user_coupon_id"` } `json:"user_coupon_info"` }
func (ChannelsEcUserCouponExpire) GetEventType ¶ added in v1.1.8
func (ChannelsEcUserCouponExpire) GetEventType() string
func (ChannelsEcUserCouponExpire) GetMessageType ¶ added in v1.1.8
func (ChannelsEcUserCouponExpire) GetMessageType() string
func (ChannelsEcUserCouponExpire) GetTypeKey ¶ added in v1.1.8
func (m ChannelsEcUserCouponExpire) GetTypeKey() string
func (ChannelsEcUserCouponExpire) ParseFromJson ¶ added in v1.1.8
func (ChannelsEcUserCouponExpire) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcUserCouponUnuse ¶ added in v1.1.8
type ChannelsEcUserCouponUnuse struct { CreateTime int `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` UseInfo struct { CouponID string `json:"coupon_id"` OrderID string `json:"order_id"` UnuseTime string `json:"unuse_time"` UserCouponID string `json:"user_coupon_id"` } `json:"use_info"` }
func (ChannelsEcUserCouponUnuse) GetEventType ¶ added in v1.1.8
func (ChannelsEcUserCouponUnuse) GetEventType() string
func (ChannelsEcUserCouponUnuse) GetMessageType ¶ added in v1.1.8
func (ChannelsEcUserCouponUnuse) GetMessageType() string
func (ChannelsEcUserCouponUnuse) GetTypeKey ¶ added in v1.1.8
func (m ChannelsEcUserCouponUnuse) GetTypeKey() string
func (ChannelsEcUserCouponUnuse) ParseFromJson ¶ added in v1.1.8
func (ChannelsEcUserCouponUnuse) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcUserCouponUse ¶ added in v1.1.8
type ChannelsEcUserCouponUse struct { CreateTime int `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` UseInfo struct { CouponID string `json:"coupon_id"` OrderID string `json:"order_id"` UseTime string `json:"use_time"` UserCouponID string `json:"user_coupon_id"` } `json:"use_info"` }
func (ChannelsEcUserCouponUse) GetEventType ¶ added in v1.1.8
func (ChannelsEcUserCouponUse) GetEventType() string
func (ChannelsEcUserCouponUse) GetMessageType ¶ added in v1.1.8
func (ChannelsEcUserCouponUse) GetMessageType() string
func (ChannelsEcUserCouponUse) GetTypeKey ¶ added in v1.1.8
func (m ChannelsEcUserCouponUse) GetTypeKey() string
func (ChannelsEcUserCouponUse) ParseFromJson ¶ added in v1.1.8
func (ChannelsEcUserCouponUse) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ChannelsEcWithdrawNotify ¶ added in v1.0.0
type ChannelsEcWithdrawNotify struct { CreateTime int `json:"CreateTime"` Event string `json:"Event"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` WithdrawInfo struct { Event int `json:"event"` WithdrawID string `json:"withdraw_id"` } `json:"withdraw_info"` }
func (ChannelsEcWithdrawNotify) GetEventType ¶ added in v1.0.0
func (ChannelsEcWithdrawNotify) GetEventType() string
func (ChannelsEcWithdrawNotify) GetMessageType ¶ added in v1.0.0
func (ChannelsEcWithdrawNotify) GetMessageType() string
func (ChannelsEcWithdrawNotify) GetTypeKey ¶ added in v1.0.0
func (m ChannelsEcWithdrawNotify) GetTypeKey() string
func (ChannelsEcWithdrawNotify) ParseFromJson ¶ added in v1.0.0
func (ChannelsEcWithdrawNotify) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type EventProductSpuAudit ¶
type EventProductSpuAudit struct { CreateTime int64 `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` ProductSpuAudit struct { ProductID string `json:"product_id"` Status int64 `json:"status"` Reason string `json:"reason"` } `json:"ProductSpuAudit"` }
func (EventProductSpuAudit) GetEventType ¶
func (EventProductSpuAudit) GetEventType() string
func (EventProductSpuAudit) GetMessageType ¶
func (EventProductSpuAudit) GetMessageType() string
func (EventProductSpuAudit) GetTypeKey ¶
func (m EventProductSpuAudit) GetTypeKey() string
func (EventProductSpuAudit) ParseFromJson ¶
func (EventProductSpuAudit) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type EventProductSpuListing ¶
type EventProductSpuListing struct { CreateTime int64 `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` ProductSpuAudit struct { ProductID string `json:"product_id"` Status int64 `json:"status"` Reason string `json:"reason"` } `json:"ProductSpuAudit"` }
func (EventProductSpuListing) GetEventType ¶
func (EventProductSpuListing) GetEventType() string
func (EventProductSpuListing) GetMessageType ¶
func (EventProductSpuListing) GetMessageType() string
func (EventProductSpuListing) GetTypeKey ¶
func (m EventProductSpuListing) GetTypeKey() string
func (EventProductSpuListing) ParseFromJson ¶
func (EventProductSpuListing) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type EventProductSpuUpdate ¶ added in v1.0.0
type EventProductSpuUpdate struct { CreateTime int64 `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` ProductSpuUpdate struct { ProductID string `json:"product_id"` Status int64 `json:"status"` } `json:"ProductSpuUpdate"` }
func (EventProductSpuUpdate) GetEventType ¶ added in v1.0.0
func (EventProductSpuUpdate) GetEventType() string
func (EventProductSpuUpdate) GetMessageType ¶ added in v1.0.0
func (EventProductSpuUpdate) GetMessageType() string
func (EventProductSpuUpdate) GetTypeKey ¶ added in v1.0.0
func (m EventProductSpuUpdate) GetTypeKey() string
func (EventProductSpuUpdate) ParseFromJson ¶ added in v1.0.0
func (EventProductSpuUpdate) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type EventType ¶
type EventType string
事件类型
const EventTypeChannelsEcAcctNotify EventType = "channels_ec_acct_notify"
结算账户变更回调
const EventTypeChannelsEcAftersaleUpdate EventType = "channels_ec_aftersale_update"
售后单更新通知
const EventTypeChannelsEcBrand EventType = "channels_ec_brand"
品牌资质事件回调
const EventTypeChannelsEcComplaintUpdate EventType = "channels_ec_complaint_update"
纠纷更新通知
const EventTypeChannelsEcCouponCreate EventType = "channels_ec_coupon_create"
创建优惠券通知
const EventTypeChannelsEcCouponDelete EventType = "channels_ec_coupon_delete"
删除优惠券通知
const EventTypeChannelsEcCouponExpire EventType = "channels_ec_coupon_expire"
优惠券过期通知
const EventTypeChannelsEcCouponInfoChange EventType = "channels_ec_coupon_info_change"
优惠券信息更新通知
const EventTypeChannelsEcCouponInvalid EventType = "channels_ec_coupon_invalid"
作废优惠券通知
const EventTypeChannelsEcCouponReceive EventType = "channels_ec_coupon_receive"
优惠券领取通知
const EventTypeChannelsEcOrderCancel EventType = "channels_ec_order_cancel"
订单取消
const EventTypeChannelsEcOrderConfirm EventType = "channels_ec_order_confirm"
订单确认收货
const EventTypeChannelsEcOrderDeliver EventType = "channels_ec_order_deliver"
订单发货
const EventTypeChannelsEcOrderExtInfoUpdate EventType = "channels_ec_order_ext_info_update"
订单其他信息更新
const EventTypeChannelsEcOrderNew EventType = "channels_ec_order_new"
订单下单
const EventTypeChannelsEcOrderPay EventType = "channels_ec_order_pay"
订单支付成功
const EventTypeChannelsEcOrderSettle EventType = "channels_ec_order_settle"
订单结算成功
const EventTypeChannelsEcUserCouponExpire EventType = "channels_ec_user_coupon_expire"
用户优惠券过期通知
const EventTypeChannelsEcUserCouponUnuse EventType = "channels_ec_user_coupon_unuse"
优惠券返还通知
const EventTypeChannelsEcUserCouponUse EventType = "channels_ec_user_coupon_use"
优惠券核销通知
const EventTypeChannelsEcWithdrawNotify EventType = "channels_ec_withdraw_notify"
提现回调
const EventTypeProductCategoryAudit EventType = "product_category_audit"
类目审核结果
const EventTypeProductSpuAudit EventType = "product_spu_audit"
商品审核
const EventTypeProductSpuListing EventType = "product_spu_listing"
商品上下架
const EventTypeProductSpuUpdate EventType = "product_spu_update"
商品编辑
const EventTypeQrcodeStatus EventType = "qrcode_status"
提现二维码回调
type MessageType ¶
type MessageType string
消息类型
const MessageTypeEvent MessageType = "event"
事件消息
const MessageTypeImage MessageType = "image"
图片消息
const MessageTypeLink MessageType = "link"
链接消息
const MessageTypeLocation MessageType = "location"
位置消息
const MessageTypeText MessageType = "text"
文本消息
const MessageTypeUnknown MessageType = "unknown"
没有明确指定消息类型,都视为未知事件
const MessageTypeVideo MessageType = "video"
视频消息
const MessageTypeVoice MessageType = "voice"
语音消息
type ProductCategoryAudit ¶ added in v1.0.0
type ProductCategoryAudit struct { CreateTime int `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ProductCategoryAudit struct { AuditID string `json:"audit_id"` Reason string `json:"reason"` Status string `json:"status"` } `json:"ProductCategoryAudit"` ToUserName string `json:"ToUserName"` }
func (ProductCategoryAudit) GetEventType ¶ added in v1.0.0
func (ProductCategoryAudit) GetEventType() string
func (ProductCategoryAudit) GetMessageType ¶ added in v1.0.0
func (ProductCategoryAudit) GetMessageType() string
func (ProductCategoryAudit) GetTypeKey ¶ added in v1.0.0
func (m ProductCategoryAudit) GetTypeKey() string
func (ProductCategoryAudit) ParseFromJson ¶ added in v1.0.0
func (ProductCategoryAudit) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type ProductOrderStatusUpdate ¶ added in v1.0.1
type ProductOrderStatusUpdate struct { CreateTime int64 `json:"CreateTime"` Event string `json:"Event"` FromUserName string `json:"FromUserName"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` ProductOrderStatusUpdate struct { OrderID string `json:"order_id"` Status int64 `json:"status"` } `json:"ProductOrderStatusUpdate"` }
func (ProductOrderStatusUpdate) GetEventType ¶ added in v1.0.1
func (ProductOrderStatusUpdate) GetEventType() string
func (ProductOrderStatusUpdate) GetMessageType ¶ added in v1.0.1
func (ProductOrderStatusUpdate) GetMessageType() string
func (ProductOrderStatusUpdate) GetTypeKey ¶ added in v1.0.1
func (m ProductOrderStatusUpdate) GetTypeKey() string
func (ProductOrderStatusUpdate) ParseFromJson ¶ added in v1.0.1
func (ProductOrderStatusUpdate) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
type QrcodeStatus ¶ added in v1.0.0
type QrcodeStatus struct { CreateTime int `json:"CreateTime"` Event string `json:"Event"` MsgType string `json:"MsgType"` ToUserName string `json:"ToUserName"` QrcodeInfo struct { ScanUserType int `json:"scan_user_type"` Status int `json:"status"` Ticket string `json:"ticket"` } `json:"qrcode_info"` }
func (QrcodeStatus) GetEventType ¶ added in v1.0.0
func (QrcodeStatus) GetEventType() string
func (QrcodeStatus) GetMessageType ¶ added in v1.0.0
func (QrcodeStatus) GetMessageType() string
func (QrcodeStatus) GetTypeKey ¶ added in v1.0.0
func (m QrcodeStatus) GetTypeKey() string
func (QrcodeStatus) ParseFromJson ¶ added in v1.0.0
func (QrcodeStatus) ParseFromJson(data []byte) (CallbackExtraInfoInterface, error)
Source Files
¶
- callback.go
- callback_constant.go
- callback_interface.go
- callback_message.go
- event优惠券信息更新通知.go
- event优惠券核销通知.go
- event优惠券过期通知.go
- event优惠券返还通知.go
- event优惠券领取通知.go
- event作废优惠券通知.go
- event创建优惠券通知.go
- event删除优惠券通知.go
- event品牌资质事件回调.go
- event售后单更新通知.go
- event商品上下架.go
- event商品审核.go
- event商品更新通知.go
- event提现二维码回调.go
- event提现回调.go
- event用户优惠券过期通知.go
- event类目审核结果.go
- event纠纷更新通知.go
- event结算账户变更回调.go
- event订单下单.go
- event订单其他信息更新.go
- event订单发货.go
- event订单取消.go
- event订单支付成功.go
- event订单状态变更通知.go
- event订单确认收货.go
- event订单结算成功.go
Click to show internal directories.
Click to hide internal directories.