From 22c246a62b84f431f7277aca82da42fe5d51e2c2 Mon Sep 17 00:00:00 2001 From: sian Date: Wed, 31 Aug 2022 11:47:30 +0800 Subject: [PATCH] - --- 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 -}