|
|
@ -71,3 +71,23 @@ func (s *supplier) Lists(ctx context.Context, args ArgsSupplierLists) (reply Rep
|
|
|
|
err = xClient.Call(ctx, "Lists", args, &reply)
|
|
|
|
err = xClient.Call(ctx, "Lists", args, &reply)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Enabled @Title 启用供应商
|
|
|
|
|
|
|
|
func (s *supplier) Enabled(ctx context.Context, supplierId uint) error {
|
|
|
|
|
|
|
|
xClient, err := client.GetClient(s)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
reply := 0
|
|
|
|
|
|
|
|
return xClient.Call(ctx, "Enabled", supplierId, &reply)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Disabled @Title 启用供应商
|
|
|
|
|
|
|
|
func (s *supplier) Disabled(ctx context.Context, supplierId uint) error {
|
|
|
|
|
|
|
|
xClient, err := client.GetClient(s)
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
|
|
return err
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
reply := 0
|
|
|
|
|
|
|
|
return xClient.Call(ctx, "Disabled", supplierId, &reply)
|
|
|
|
|
|
|
|
}
|
|
|
|