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