From e73f8a220bd35ad7922bc8336815c6a033aab05b Mon Sep 17 00:00:00 2001 From: kanade Date: Fri, 14 Oct 2022 15:34:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9mq?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/channel/mq.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/supply/channel/mq.go b/supply/channel/mq.go index 22b44c2..681361d 100644 --- a/supply/channel/mq.go +++ b/supply/channel/mq.go @@ -7,14 +7,20 @@ import ( ) const ( - MqSubscribeNameSkuPriceChange = "sku_price_change" // sku价格变动 - MqSubscribeNameSkuChange = "sku_change" // sku信息变动 + MqSubscribeNameSkuPriceChange = "sku_price_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 ArgsMqSubscribe struct { - Name string // 队列名称 + Name string // 队列名称 + AppKey string // 队列名称 } // Subscribe @Title 订阅mq From 5ea405ce606ab8594446c8da540eafde8b1ef5ae Mon Sep 17 00:00:00 2001 From: kanade Date: Fri, 14 Oct 2022 15:35:55 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9mq?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/channel/channel.go | 1 + 1 file changed, 1 insertion(+) diff --git a/supply/channel/channel.go b/supply/channel/channel.go index 4d4ef19..d6022c8 100644 --- a/supply/channel/channel.go +++ b/supply/channel/channel.go @@ -4,4 +4,5 @@ type Channel struct { Sku sku Order order AfterService afterService + Mq mq }