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

ISysPositionService.cs 2.5 KiB

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