From 8a51401924de35a1ec4163642e5fa74c92101c84 Mon Sep 17 00:00:00 2001 From: kanade Date: Fri, 15 Jul 2022 14:25:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0sku=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd/sku.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/jd/sku.go b/jd/sku.go index 0ce35ea..88c21a8 100644 --- a/jd/sku.go +++ b/jd/sku.go @@ -103,6 +103,25 @@ func (s *sku) Info(ctx context.Context, skuId uint) (reply ReplySkuInfo, err err return } +type ArgsSkuEdit struct { + SkuId uint + SupplyBandId uint + SupplyCategoryId uint + Content string + Imgs []SkuImgEdit +} + +type SkuImgEdit struct { + Id uint + ReplacePath string +} + +// Edit @Title 商品编辑 +func (s *sku) Edit(ctx context.Context, args ArgsSkuEdit) error { + reply := 0 + return client.GetClient(s).Call(ctx, "Edit", args, &reply) +} + // Discard @Title 废弃 func (s *sku) Discard(ctx context.Context, skuIds []uint) error { reply := 0