From e16ecb35afc1bab4273c203549244d5b6f31014d Mon Sep 17 00:00:00 2001 From: sian Date: Mon, 15 Aug 2022 10:16:10 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd/brand.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/jd/brand.go b/jd/brand.go index 3ad00d1..b145ac5 100644 --- a/jd/brand.go +++ b/jd/brand.go @@ -48,17 +48,3 @@ func (b *brand) Edit(ctx context.Context, args ArgsBrandEdit) error { } return xClient.Call(ctx, "Edit", args, &reply) } - -type ArgsImport struct { - Name string // 品牌名称 - SupplyBrandId uint // 匹配的品牌Id -} - -func (b *brand) Import(ctx context.Context, args []ArgsImport) error { - reply := 0 - xClient, err := client.GetClient(b) - if err != nil { - return err - } - return xClient.Call(ctx, "Import", args, &reply) -} From 1498fbe37c3aedfc8f6b31b50b37a04aca433f93 Mon Sep 17 00:00:00 2001 From: sian Date: Mon, 15 Aug 2022 10:40:15 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd/brand.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/jd/brand.go b/jd/brand.go index b145ac5..6a1e96b 100644 --- a/jd/brand.go +++ b/jd/brand.go @@ -48,3 +48,13 @@ func (b *brand) Edit(ctx context.Context, args ArgsBrandEdit) error { } return xClient.Call(ctx, "Edit", args, &reply) } + +// FindBrandByName @Title 根据品牌名称获取全部品牌 +func (b *brand) FindBrandByName(ctx context.Context, name string) (reply []BrandItem, err error) { + xClient, err := client.GetClient(b) + if err != nil { + return nil, err + } + err = xClient.Call(ctx, "FindBrandByName", name, &reply) + return +} From aee70d3f2b1ac5fccd7bdccb8689937eb392cf95 Mon Sep 17 00:00:00 2001 From: sian Date: Mon, 15 Aug 2022 14:27:07 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=AC=E4=B8=9C?= =?UTF-8?q?=E5=BA=9F=E5=BC=83=E5=95=86=E5=93=81=E8=BF=94=E5=9B=9E=E5=BE=85?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=95=86=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd/sku.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/jd/sku.go b/jd/sku.go index 79574e2..8830e71 100644 --- a/jd/sku.go +++ b/jd/sku.go @@ -238,3 +238,13 @@ func (s *sku) ReplaceImgJdSku(ctx context.Context, args ArgsSkuReplaceImgJdSku) } return xClient.Call(ctx, "ReplaceImgJdSku", args, &reply) } + +// ReHandle @Title 重新处理商品 +func (s *sku) ReHandle(ctx context.Context, skuId uint) error { + reply := 0 + xClient, err := client.GetClient(s) + if err != nil { + return err + } + return xClient.Call(ctx, "ReHandle", skuId, &reply) +}