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