添加启用/禁用供应商接口

finance
黄伟 2 years ago
parent 24de88ef74
commit 4b5e5fb0e3

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

Loading…
Cancel
Save