ISysPostService.java 2.0 KB

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