ISysPostService.java 2.0 KB

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