|
|
@ -7,14 +7,20 @@ import (
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
const (
|
|
|
|
MqSubscribeNameSkuPriceChange = "sku_price_change" // sku价格变动
|
|
|
|
MqSubscribeNameSkuPriceChange = "sku_price_change" // sku价格变动
|
|
|
|
MqSubscribeNameSkuChange = "sku_change" // sku信息变动
|
|
|
|
MqSubscribeNameSkuChange = "sku_change" // sku信息变动
|
|
|
|
|
|
|
|
MqSubscribeNameOrderSplit = "order_split" // 订单拆单
|
|
|
|
|
|
|
|
MqSubscribeNameOrderLadingBill = "order_lading_bill" // 提单
|
|
|
|
|
|
|
|
MqSubscribeNameOrderStockOut = "order_stock_out" // 订单出库
|
|
|
|
|
|
|
|
MqSubscribeNameOrderFinish = "order_finish" // 订单完成
|
|
|
|
|
|
|
|
MqSubscribeNameOrderCancel = "order_cancel" // 订单取消
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type mq struct {
|
|
|
|
type mq struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type ArgsMqSubscribe struct {
|
|
|
|
type ArgsMqSubscribe struct {
|
|
|
|
Name string // 队列名称
|
|
|
|
Name string // 队列名称
|
|
|
|
|
|
|
|
AppKey string // 队列名称
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Subscribe @Title 订阅mq
|
|
|
|
// Subscribe @Title 订阅mq
|
|
|
|