|
|
|
@ -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)
|
|
|
|
|
}
|
|
|
|
|