平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

115 regels
2.5 KiB

  1. //
  2. namespace SafeCampus.System;
  3. /// <summary>
  4. /// 职位服务
  5. /// </summary>
  6. public interface ISysPositionService : ITransient
  7. {
  8. #region 查询
  9. /// <summary>
  10. /// 获取职位列表
  11. /// </summary>
  12. /// <returns>职位列表</returns>
  13. Task<List<SysPosition>> GetListAsync();
  14. /// <summary>
  15. /// 获取职位信息
  16. /// </summary>
  17. /// <param name="id">职位ID</param>
  18. /// <returns>职位信息</returns>
  19. Task<SysPosition> GetSysPositionById(long id);
  20. /// <summary>
  21. /// 职位分页查询
  22. /// </summary>
  23. /// <param name="input">查询参数</param>
  24. /// <returns>分页列表</returns>
  25. Task<SqlSugarPagedList<SysPosition>> Page(PositionPageInput input);
  26. /// <summary>
  27. /// 职位选择器
  28. /// </summary>
  29. /// <param name="input">查询参数</param>
  30. /// <returns></returns>
  31. Task<List<PositionSelectorOutput>> Selector(PositionSelectorInput input);
  32. /// <summary>
  33. /// 根据id集合获取职位集合
  34. /// </summary>
  35. /// <param name="input"></param>
  36. /// <returns></returns>
  37. Task<List<SysPosition>> GetPositionListByIdList(IdListInput input);
  38. /// <summary>
  39. /// 职位树形结构
  40. /// </summary>
  41. /// <param name="input"></param>
  42. /// <returns></returns>
  43. Task<List<PositionTreeOutput>> Tree(PositionTreeInput input);
  44. /// <summary>
  45. /// 职位详情
  46. /// </summary>
  47. /// <param name="input"></param>
  48. /// <returns></returns>
  49. Task<SysPosition> Detail(BaseIdInput input);
  50. #endregion
  51. #region 编辑
  52. /// <summary>
  53. /// 编辑职位
  54. /// </summary>
  55. /// <param name="input">编辑参数</param>
  56. /// <param name="name">名称</param>
  57. /// <returns></returns>
  58. Task Edit(PositionEditInput input, string name = SystemConst.SYS_POS);
  59. /// <summary>
  60. /// 刷新缓存
  61. /// </summary>
  62. /// <returns></returns>
  63. Task RefreshCache();
  64. #endregion
  65. #region 新增
  66. /// <summary>
  67. /// 添加职位
  68. /// </summary>
  69. /// <param name="input">添加参数</param>
  70. /// <param name="name">名称</param>
  71. /// <returns></returns>
  72. Task Add(PositionAddInput input, string name = SystemConst.SYS_POS);
  73. #endregion
  74. #region 删除
  75. /// <summary>
  76. /// 删除职位
  77. /// </summary>
  78. /// <param name="input">id列表</param>
  79. /// <param name="name">名称</param>
  80. /// <returns></returns>
  81. Task Delete(BaseIdListInput input, string name = SystemConst.SYS_POS);
  82. #endregion
  83. }