ISysPostService.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. package com.ruoyi.system.service;
  2. import com.ruoyi.common.core.page.IServicePlus;
  3. import com.ruoyi.common.core.page.TableDataInfo;
  4. import com.ruoyi.system.domain.SysPost;
  5. import java.util.List;
  6. /**
  7. * 岗位信息 服务层
  8. *
  9. * @author ruoyi
  10. */
  11. public interface ISysPostService extends IServicePlus<SysPost> {
  12. TableDataInfo<SysPost> selectPagePostList(SysPost post);
  13. /**
  14. * 查询岗位信息集合
  15. *
  16. * @param post 岗位信息
  17. * @return 岗位列表
  18. */
  19. public List<SysPost> selectPostList(SysPost post);
  20. /**
  21. * 查询所有岗位
  22. *
  23. * @return 岗位列表
  24. */
  25. public List<SysPost> selectPostAll();
  26. /**
  27. * 通过岗位ID查询岗位信息
  28. *
  29. * @param postId 岗位ID
  30. * @return 角色对象信息
  31. */
  32. public SysPost selectPostById(Long postId);
  33. /**
  34. * 根据用户ID获取岗位选择框列表
  35. *
  36. * @param userId 用户ID
  37. * @return 选中岗位ID列表
  38. */
  39. public List<Integer> selectPostListByUserId(Long userId);
  40. /**
  41. * 校验岗位名称
  42. *
  43. * @param post 岗位信息
  44. * @return 结果
  45. */
  46. public String checkPostNameUnique(SysPost post);
  47. /**
  48. * 校验岗位编码
  49. *
  50. * @param post 岗位信息
  51. * @return 结果
  52. */
  53. public String checkPostCodeUnique(SysPost post);
  54. /**
  55. * 通过岗位ID查询岗位使用数量
  56. *
  57. * @param postId 岗位ID
  58. * @return 结果
  59. */
  60. public int countUserPostById(Long postId);
  61. /**
  62. * 删除岗位信息
  63. *
  64. * @param postId 岗位ID
  65. * @return 结果
  66. */
  67. public int deletePostById(Long postId);
  68. /**
  69. * 批量删除岗位信息
  70. *
  71. * @param postIds 需要删除的岗位ID
  72. * @return 结果
  73. * @throws Exception 异常
  74. */
  75. public int deletePostByIds(Long[] postIds);
  76. /**
  77. * 新增保存岗位信息
  78. *
  79. * @param post 岗位信息
  80. * @return 结果
  81. */
  82. public int insertPost(SysPost post);
  83. /**
  84. * 修改保存岗位信息
  85. *
  86. * @param post 岗位信息
  87. * @return 结果
  88. */
  89. public int updatePost(SysPost post);
  90. }