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