From 9c89e67368de7d34478cce039a0e3b30c9365662 Mon Sep 17 00:00:00 2001 From: sian Date: Wed, 31 Aug 2022 09:40:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E4=B8=8A=E4=B8=8B=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supplier/goods.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/supplier/goods.go b/supplier/goods.go index 5d689c5..1fc0b2a 100644 --- a/supplier/goods.go +++ b/supplier/goods.go @@ -132,3 +132,23 @@ func (g *goods) GetImgs(ctx context.Context, goodsId uint) (reply []string, err err = xClient.Call(ctx, "GetImgs", goodsId, &reply) return } + +// DownShelves @Title 获取商品主图 +func (g *goods) DownShelves(ctx context.Context, goodsIds []uint) (err error) { + xClient, err := client.GetClient(g) + if err != nil { + return + } + reply := 0 + return xClient.Call(ctx, "DownShelves", goodsIds, &reply) +} + +// OnShelves @Title 获取商品主图 +func (g *goods) OnShelves(ctx context.Context, goodsIds []uint) (err error) { + xClient, err := client.GetClient(g) + if err != nil { + return + } + reply := 0 + return xClient.Call(ctx, "OnShelves", goodsIds, &reply) +}