From b46d85f7c3f1a77b56233b7ea6f6a80520b82ecc Mon Sep 17 00:00:00 2001 From: sian Date: Wed, 31 Aug 2022 09:18:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3?= 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 e2b421c..5d689c5 100644 --- a/supplier/goods.go +++ b/supplier/goods.go @@ -122,3 +122,13 @@ func (g *goods) Info(ctx context.Context, goodsId uint) (reply ReplyGoodsInfo, e err = xClient.Call(ctx, "Info", goodsId, &reply) return } + +// GetImgs @Title 获取商品主图 +func (g *goods) GetImgs(ctx context.Context, goodsId uint) (reply []string, err error) { + xClient, err := client.GetClient(g) + if err != nil { + return + } + err = xClient.Call(ctx, "GetImgs", goodsId, &reply) + return +}