From 8598d0e093740ce5fb4662024087a191b5297f24 Mon Sep 17 00:00:00 2001 From: kanade Date: Thu, 25 Jul 2024 09:24:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=B7=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd/sku.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/jd/sku.go b/jd/sku.go index 8830e71..a7fc9d2 100644 --- a/jd/sku.go +++ b/jd/sku.go @@ -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) +}