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