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