|
|
@ -49,13 +49,13 @@ func (b *brand) All(ctx context.Context) (result []BrandItem, err error) {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// All2 @Title 品牌名称筛选品牌
|
|
|
|
// FindByNameAll @Title 品牌名称筛选品牌
|
|
|
|
func (b *brand) All2(ctx context.Context, name string) (result []BrandItem, err error) {
|
|
|
|
func (b *brand) FindByNameAll(ctx context.Context, name string) (result []BrandItem, err error) {
|
|
|
|
xClient, err := client.GetClient(b)
|
|
|
|
xClient, err := client.GetClient(b)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
err = xClient.Call(ctx, "All2", name, &result)
|
|
|
|
err = xClient.Call(ctx, "FindByNameAll", name, &result)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|