diff --git a/supply/brand.go b/supply/brand.go index d4516ff..f9a54ca 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, "Export", name, &result) + return +} diff --git a/supply/sku.go b/supply/sku.go index d9ad63f..0c41125 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 }