|
|
|
@ -73,6 +73,16 @@ func (b *brand) Add(ctx context.Context, args ArgsBrandAdd) (err error) {
|
|
|
|
|
return xClient.Call(ctx, "Add", args, &reply)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Adds @Title 添加品牌
|
|
|
|
|
func (b *brand) Adds(ctx context.Context, brandNames []string) (err error) {
|
|
|
|
|
reply := 0
|
|
|
|
|
xClient, err := client.GetClient(b)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
return xClient.Call(ctx, "Adds", brandNames, &reply)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ArgsBrandEdit struct {
|
|
|
|
|
BrandId uint // 品牌id
|
|
|
|
|
Name string // 品牌名称
|
|
|
|
|