From 2bef815b03be8ea79ae0cf5194b296f500011be7 Mon Sep 17 00:00:00 2001 From: kanade Date: Mon, 8 Aug 2022 19:11:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9B=BF=E6=8D=A2=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd/category.go | 7 ++----- jd/sku.go | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/jd/category.go b/jd/category.go index 2aad24d..7ad32bb 100644 --- a/jd/category.go +++ b/jd/category.go @@ -36,11 +36,8 @@ func (c *category) Lists(ctx context.Context, args ArgsCategoryList) (reply Repl } type ArgsCategoryEdit struct { - CategoryId uint // 分类id - FirstCategoryName string // 一级分类名称 - SecondCategoryName string // 二级分类名称 - ThirdCategoryName string // 三级分类名称 - SupplyCategoryId uint // 匹配分类id + CategoryId uint // 分类id + SupplyCategoryId uint // 匹配分类id } // Edit @Title 编辑品牌匹配 diff --git a/jd/sku.go b/jd/sku.go index b7e8976..a802798 100644 --- a/jd/sku.go +++ b/jd/sku.go @@ -222,3 +222,19 @@ func (s *sku) ReplaceImg(ctx context.Context, args ArgsSkuReplaceImg) error { } return xClient.Call(ctx, "ReplaceImg", args, &reply) } + +type ArgsSkuReplaceImgJdSku struct { + JdSkuId uint64 // 京东skuId + ImgSort uint // 图片排序 + ImgPath string // 图片路径 +} + +// ReplaceImgJdSku @Title 根据JdSkuId sort替换图片 +func (s *sku) ReplaceImgJdSku(ctx context.Context, args ArgsSkuReplaceImgJdSku) error { + reply := 0 + xClient, err := client.GetClient(s) + if err != nil { + return err + } + return xClient.Call(ctx, "ReplaceImg", args, &reply) +}