using LeaRun.Application.Entity.BaseManage; using LeaRun.Util.WebControl; using System.Collections.Generic; namespace LeaRun.Application.IService.BaseManage { /// /// 版 本 /// Copyright (c) 2013-2016 上海力软信息技术有限公司 /// 创建人:佘赐雄 /// 日 期:2015.11.4 14:31 /// 描 述:角色管理 /// public interface IRoleService { #region 获取数据 /// /// 角色列表 /// /// IEnumerable GetList(); /// /// 角色列表 /// /// 分页 /// 查询参数 /// IEnumerable GetPageList(Pagination pagination, string queryJson); /// /// 角色列表all /// /// IEnumerable GetAllList(); /// /// 角色实体 /// /// 主键值 /// RoleEntity GetEntity(string keyValue); #endregion #region 验证数据 /// /// 角色编号不能重复 /// /// 编号 /// 主键 /// bool ExistEnCode(string enCode, string keyValue); /// /// 角色名称不能重复 /// /// 名称 /// 主键 /// bool ExistFullName(string fullName, string keyValue); #endregion #region 提交数据 /// /// 删除角色 /// /// 主键 void RemoveForm(string keyValue); /// /// 保存角色表单(新增、修改) /// /// 主键值 /// 角色实体 /// void SaveForm(string keyValue, RoleEntity roleEntity); #endregion } }