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) +}