商品上下架

finance
黄伟 2 years ago
parent b46d85f7c3
commit 9c89e67368

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

Loading…
Cancel
Save