|
|
|
@ -9,6 +9,7 @@ import (
|
|
|
|
|
type brand struct {
|
|
|
|
|
}
|
|
|
|
|
type ArgsBrandList struct {
|
|
|
|
|
Name string
|
|
|
|
|
Page bean.Page
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -39,3 +40,13 @@ func (b *brand) Edit(ctx context.Context, args ArgsBrandEdit) error {
|
|
|
|
|
reply := 0
|
|
|
|
|
return client.GetClient(b).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
|
|
|
|
|
return client.GetClient(b).Call(ctx, "Import", args, &reply)
|
|
|
|
|
}
|
|
|
|
|