添加接口

finance
黄伟 2 years ago
parent fc08e39304
commit b46d85f7c3

@ -122,3 +122,13 @@ func (g *goods) Info(ctx context.Context, goodsId uint) (reply ReplyGoodsInfo, e
err = xClient.Call(ctx, "Info", goodsId, &reply) err = xClient.Call(ctx, "Info", goodsId, &reply)
return 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
}

Loading…
Cancel
Save