diff --git a/supplier/goods.go b/supplier/goods.go index 9e636c2..bf199ad 100644 --- a/supplier/goods.go +++ b/supplier/goods.go @@ -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 +}