IRoleService.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. using LeaRun.Application.Entity.BaseManage;
  2. using LeaRun.Util.WebControl;
  3. using System.Collections.Generic;
  4. namespace LeaRun.Application.IService.BaseManage
  5. {
  6. /// <summary>
  7. /// 版 本
  8. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  9. /// 创建人:佘赐雄
  10. /// 日 期:2015.11.4 14:31
  11. /// 描 述:角色管理
  12. /// </summary>
  13. public interface IRoleService
  14. {
  15. #region 获取数据
  16. /// <summary>
  17. /// 角色列表
  18. /// </summary>
  19. /// <returns></returns>
  20. IEnumerable<RoleEntity> GetList();
  21. /// <summary>
  22. /// 角色列表
  23. /// </summary>
  24. /// <param name="pagination">分页</param>
  25. /// <param name="queryJson">查询参数</param>
  26. /// <returns></returns>
  27. IEnumerable<RoleEntity> GetPageList(Pagination pagination, string queryJson);
  28. /// <summary>
  29. /// 角色列表all
  30. /// </summary>
  31. /// <returns></returns>
  32. IEnumerable<RoleEntity> GetAllList();
  33. /// <summary>
  34. /// 角色实体
  35. /// </summary>
  36. /// <param name="keyValue">主键值</param>
  37. /// <returns></returns>
  38. RoleEntity GetEntity(string keyValue);
  39. #endregion
  40. #region 验证数据
  41. /// <summary>
  42. /// 角色编号不能重复
  43. /// </summary>
  44. /// <param name="enCode">编号</param>
  45. /// <param name="keyValue">主键</param>
  46. /// <returns></returns>
  47. bool ExistEnCode(string enCode, string keyValue);
  48. /// <summary>
  49. /// 角色名称不能重复
  50. /// </summary>
  51. /// <param name="fullName">名称</param>
  52. /// <param name="keyValue">主键</param>
  53. /// <returns></returns>
  54. bool ExistFullName(string fullName, string keyValue);
  55. #endregion
  56. #region 提交数据
  57. /// <summary>
  58. /// 删除角色
  59. /// </summary>
  60. /// <param name="keyValue">主键</param>
  61. void RemoveForm(string keyValue);
  62. /// <summary>
  63. /// 保存角色表单(新增、修改)
  64. /// </summary>
  65. /// <param name="keyValue">主键值</param>
  66. /// <param name="roleEntity">角色实体</param>
  67. /// <returns></returns>
  68. void SaveForm(string keyValue, RoleEntity roleEntity);
  69. #endregion
  70. }
  71. }