finance
黄伟 2 years ago
parent 1237f97014
commit 27e2c299ec

@ -39,3 +39,14 @@ func (b *brand) Edit(ctx context.Context, args ArgsBrandEdit) error {
reply := 0 reply := 0
return client.GetClient(b).Call(ctx, "Edit", args, &reply) return client.GetClient(b).Call(ctx, "Edit", args, &reply)
} }
type ArgsImport struct {
Name string // 品牌名称
SupplyBrandId uint // 匹配的品牌Id
SupplyBrandName string // 匹配的品牌名称
}
func (b *brand) Import(ctx context.Context, args []ArgsImport) error {
reply := 0
return client.GetClient(b).Call(ctx, "Import", args, &reply)
}

@ -94,7 +94,7 @@ type SkuImg struct {
} }
// GetImgs @Title 获取预览图 // GetImgs @Title 获取预览图
func (s *sku) GetImgs(ctx context.Context, skuId uint) (reply []SkuImg, err error) { func (s *sku) GetImgs(ctx context.Context, skuId uint) (reply SkuImg, err error) {
err = client.GetClient(s).Call(ctx, "GetImgs", skuId, &reply) err = client.GetClient(s).Call(ctx, "GetImgs", skuId, &reply)
return return
} }

Loading…
Cancel
Save