更新价格

master
杨赟 2 months ago
parent d5469d075e
commit 8598d0e093

@ -248,3 +248,19 @@ func (s *sku) ReHandle(ctx context.Context, skuId uint) error {
}
return xClient.Call(ctx, "ReHandle", skuId, &reply)
}
type PriceItem struct {
SkuId uint64
Price decimal.Decimal
JdPrice decimal.Decimal
}
// Prices @TITLE 批量更新价格
func (s *sku) Prices(ctx context.Context, prices PriceItem) error {
reply := 0
xClient, err := client.GetClient(s)
if err != nil {
return err
}
return xClient.Call(ctx, "Prices", prices, &reply)
}

Loading…
Cancel
Save