From 18f271f7759fcc81c5a68f86b4b941eec181fe18 Mon Sep 17 00:00:00 2001 From: kanade Date: Wed, 31 Aug 2022 11:19:29 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A4=84=E7=90=86?= =?UTF-8?q?=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supplier/goods.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/supplier/goods.go b/supplier/goods.go index fadfe08..15fd1d8 100644 --- a/supplier/goods.go +++ b/supplier/goods.go @@ -153,3 +153,13 @@ func (g *goods) Discard(ctx context.Context, goodsIds []uint) (reply []AdoptItem err = xClient.Call(ctx, "Discard", goodsIds, &reply) return } + +// ReHandle @Title 重新处理商品 +func (g *goods) ReHandle(ctx context.Context, skuId uint) error { + reply := 0 + xClient, err := client.GetClient(g) + if err != nil { + return err + } + return xClient.Call(ctx, "ReHandle", skuId, &reply) +} From 22c246a62b84f431f7277aca82da42fe5d51e2c2 Mon Sep 17 00:00:00 2001 From: sian Date: Wed, 31 Aug 2022 11:47:30 +0800 Subject: [PATCH 2/3] - --- supplier/goods.go | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/supplier/goods.go b/supplier/goods.go index fadfe08..99022d1 100644 --- a/supplier/goods.go +++ b/supplier/goods.go @@ -126,30 +126,3 @@ func (g *goods) GetImgs(ctx context.Context, goodsId uint) (reply []string, err err = xClient.Call(ctx, "GetImgs", goodsId, &reply) return } - -type AdoptItem struct { - Id uint `json:"id"` - GoodsNum string `json:"goodsNum"` - Name string `json:"name"` - Error string `json:"error"` -} - -// Adopt @Title 批量入库 -func (g *goods) Adopt(ctx context.Context, goodsIds []uint) (reply []AdoptItem, err error) { - xClient, err := client.GetClient(g) - if err != nil { - return - } - err = xClient.Call(ctx, "Adopt", goodsIds, &reply) - return -} - -// Discard @Title 批量废弃 -func (g *goods) Discard(ctx context.Context, goodsIds []uint) (reply []AdoptItem, err error) { - xClient, err := client.GetClient(g) - if err != nil { - return - } - err = xClient.Call(ctx, "Discard", goodsIds, &reply) - return -} From a3adcf77874f54485cb06f07810b27115dd94478 Mon Sep 17 00:00:00 2001 From: sian Date: Wed, 31 Aug 2022 13:53:15 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supplier/goods.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/supplier/goods.go b/supplier/goods.go index 15fd1d8..1ad4ded 100644 --- a/supplier/goods.go +++ b/supplier/goods.go @@ -145,11 +145,12 @@ func (g *goods) Adopt(ctx context.Context, goodsIds []uint) (reply []AdoptItem, } // Discard @Title 批量废弃 -func (g *goods) Discard(ctx context.Context, goodsIds []uint) (reply []AdoptItem, err error) { +func (g *goods) Discard(ctx context.Context, goodsIds []uint) (err error) { xClient, err := client.GetClient(g) if err != nil { return } + reply := 0 err = xClient.Call(ctx, "Discard", goodsIds, &reply) return }