From ffd52da52d1a235cda6573ce7b7f7fa26b267a4e Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 11 Aug 2022 14:22:28 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/brand.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/supply/brand.go b/supply/brand.go index d4516ff..150824c 100644 --- a/supply/brand.go +++ b/supply/brand.go @@ -91,3 +91,13 @@ func (b *brand) FindByIds(ctx context.Context, args ArgsBrandFindByIds) (result err = xClient.Call(ctx, "FindByIds", args, &result) return } + +// Export @Title 导出品牌 +func (b *brand) Export(ctx context.Context, name string) (result []BrandItem, err error) { + xClient, err := client.GetClient(b) + if err != nil { + return + } + err = xClient.Call(ctx, "FindByIds", name, &result) + return +} From 4b7686fd63474c67948c407e31422cf2af1ad37d Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 11 Aug 2022 14:25:01 +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 --- supply/brand.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supply/brand.go b/supply/brand.go index 150824c..f9a54ca 100644 --- a/supply/brand.go +++ b/supply/brand.go @@ -98,6 +98,6 @@ func (b *brand) Export(ctx context.Context, name string) (result []BrandItem, er if err != nil { return } - err = xClient.Call(ctx, "FindByIds", name, &result) + err = xClient.Call(ctx, "Export", name, &result) return } From 3abbea37175bc018a2651935f02a762e0770d2d1 Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 11 Aug 2022 15:03:23 +0800 Subject: [PATCH 3/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 --- supply/sku.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/supply/sku.go b/supply/sku.go index cfa63b0..4d7dbae 100644 --- a/supply/sku.go +++ b/supply/sku.go @@ -60,8 +60,9 @@ type ArgsSkuAdd struct { } type SkuImg struct { - Id uint `json:"id"` - Path string `json:"path"` + Id uint `json:"id"` + Path string `json:"path"` + ReplacePath string `json:"replacePath"` } type SkuSpecification struct { @@ -238,6 +239,7 @@ func (s *sku) GetImgs(ctx context.Context, skuId uint) (reply []SkuImg, err erro type ArgsReplaceImg struct { Id uint + SkuId uint ReplacePath string }