finance
黄伟 2 years ago
parent 1f0418f28e
commit 07ee54e06e

@ -65,11 +65,25 @@ type ReplyGoodsLists struct {
} }
// Lists @Title 获取商品列表 // Lists @Title 获取商品列表
func (s *goods) Lists(ctx context.Context, args ArgsGoodsList) (reply ReplyGoodsLists, err error) { func (g *goods) Lists(ctx context.Context, args ArgsGoodsList) (reply ReplyGoodsLists, err error) {
xClient, err := client.GetClient(s) xClient, err := client.GetClient(g)
if err != nil { if err != nil {
return return
} }
err = xClient.Call(ctx, "Lists", args, &reply) err = xClient.Call(ctx, "Lists", args, &reply)
return 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
}

Loading…
Cancel
Save