Documentation ¶ Index ¶ type MqHandle func NewMqHandle(ctx context.Context) *MqHandle func (h *MqHandle) TestOrderSyncConsumer(ctx context.Context, msg *rabbitmq.ReceiveMsgPackage) type OrderMsg Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type MqHandle ¶ type MqHandle struct { *service.Service *job.Job } func NewMqHandle ¶ func NewMqHandle(ctx context.Context) *MqHandle func (*MqHandle) TestOrderSyncConsumer ¶ func (h *MqHandle) TestOrderSyncConsumer(ctx context.Context, msg *rabbitmq.ReceiveMsgPackage) type OrderMsg ¶ type OrderMsg struct { Id int64 `json:"id"` Tid int64 `json:"tid"` Cid int64 `json:"cid"` Sid int64 `json:"sid"` OrderSn string `json:"order_sn"` } Source Files ¶ View all Source files handle.go order.go Click to show internal directories. Click to hide internal directories.