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