|
|
@ -193,3 +193,17 @@ func (g *goods) FindBySkuIds(ctx context.Context, skuIds []uint) (reply []ReplyB
|
|
|
|
err = xClient.Call(ctx, "FindBySkuIds", skuIds, &reply)
|
|
|
|
err = xClient.Call(ctx, "FindBySkuIds", skuIds, &reply)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type ArgsGoodsChange struct {
|
|
|
|
|
|
|
|
GoodsId uint // 商品id
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Change @Title 商品信息变动
|
|
|
|
|
|
|
|
func (g *goods) Change(ctx context.Context, args ArgsGoodsChange) (err error) {
|
|
|
|
|
|
|
|
xClient, err := client.GetClient(g)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
reply := 0
|
|
|
|
|
|
|
|
return xClient.Call(ctx, "Change", args, &reply)
|
|
|
|
|
|
|
|
}
|
|
|
|