|
|
|
@ -65,11 +65,25 @@ type ReplyGoodsLists struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Lists @Title 获取商品列表
|
|
|
|
|
func (s *goods) Lists(ctx context.Context, args ArgsGoodsList) (reply ReplyGoodsLists, err error) {
|
|
|
|
|
xClient, err := client.GetClient(s)
|
|
|
|
|
func (g *goods) Lists(ctx context.Context, args ArgsGoodsList) (reply ReplyGoodsLists, err error) {
|
|
|
|
|
xClient, err := client.GetClient(g)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
err = xClient.Call(ctx, "Lists", args, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ArgsGoodsInfo struct {
|
|
|
|
|
SkuId uint
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Info @Title 商品详情
|
|
|
|
|
func (g *goods) Info(ctx context.Context, skuId uint) (reply uint, err error) {
|
|
|
|
|
xClient, err := client.GetClient(g)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
err = xClient.Call(ctx, "Info", skuId, &reply)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|