25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

75 lines
2.4 KiB

  1. using Learun.Util;
  2. using System.Collections.Generic;
  3. namespace Learun.Application.Organization
  4. {
  5. /// <summary>
  6. /// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
  7. /// Copyright (c) 2013-2018 北京泉江科技有限公司
  8. /// 创建人:陈彬彬
  9. /// 日 期:2017.03.04
  10. /// 描 述:角色管理
  11. /// </summary>
  12. public interface RoleIBLL
  13. {
  14. #region 获取数据
  15. /// <summary>
  16. /// 获取角色数据列表
  17. /// </summary>
  18. /// <returns></returns>
  19. List<RoleEntity> GetList();
  20. /// <summary>
  21. /// 获取角色数据列表
  22. /// </summary>
  23. /// <param name="keyword">关键字</param>
  24. /// <returns></returns>
  25. List<RoleEntity> GetList(string keyword);
  26. /// <summary>
  27. /// 获取分页数据
  28. /// </summary>
  29. /// <param name="pagination">分页参数</param>
  30. /// <param name="keyword">查询关键词</param>
  31. /// <returns></returns>
  32. List<RoleEntity> GetPageList(Pagination pagination, string keyword);
  33. /// <summary>
  34. /// 根据角色名获取角色
  35. /// </summary>
  36. /// <param name="roleName"></param>
  37. /// <returns></returns>
  38. RoleEntity GetRoleByRoleName(string roleName);
  39. /// <summary>
  40. /// 获取角色数据列表
  41. /// </summary>
  42. /// <param name="roleIds">主键串</param>
  43. /// <returns></returns>
  44. IEnumerable<RoleEntity> GetListByRoleIds(string roleIds);
  45. #endregion
  46. #region 提交数据
  47. /// <summary>
  48. /// 虚拟删除角色
  49. /// </summary>
  50. /// <param name="keyValue">主键</param>
  51. void VirtualDelete(string keyValue);
  52. /// <summary>
  53. /// 保存角色(新增、修改)
  54. /// </summary>
  55. /// <param name="keyValue">主键值</param>
  56. /// <param name="roleEntity">角色实体</param>
  57. /// <returns></returns>
  58. void SaveEntity(string keyValue, RoleEntity roleEntity);
  59. string GetIdByRoleName(string v);
  60. #endregion
  61. #region 扩展数据
  62. /// <summary>
  63. /// userRelationIBLL.GetUserIdList(objectId);
  64. /// </summary>
  65. /// <param name="parentId">父级id</param>
  66. /// <returns></returns>
  67. List<TreeModel> GetTree(string parentId);
  68. #endregion
  69. }
  70. }