|
|
@ -132,3 +132,23 @@ func (g *goods) GetImgs(ctx context.Context, goodsId uint) (reply []string, err
|
|
|
|
err = xClient.Call(ctx, "GetImgs", goodsId, &reply)
|
|
|
|
err = xClient.Call(ctx, "GetImgs", goodsId, &reply)
|
|
|
|
return
|
|
|
|
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)
|
|
|
|
|
|
|
|
}
|
|
|
|