PostUserServiceImpl.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. package com.ruoyi.system.service.impl;
  2. import java.util.List;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.stereotype.Service;
  5. import com.ruoyi.system.mapper.PostUserMapper;
  6. import com.ruoyi.system.domain.PostUser;
  7. import com.ruoyi.system.service.IPostUserService;
  8. /**
  9. * 权限模块 用户Service业务层处理
  10. *
  11. * @author ruoyi
  12. * @date 2023-01-16
  13. */
  14. @Service
  15. public class PostUserServiceImpl implements IPostUserService
  16. {
  17. @Autowired
  18. private PostUserMapper postUserMapper;
  19. /**
  20. * 查询权限模块 用户
  21. *
  22. * @param id 权限模块 用户主键
  23. * @return 权限模块 用户
  24. */
  25. @Override
  26. public PostUser selectPostUserById(Long id)
  27. {
  28. return postUserMapper.selectPostUserById(id);
  29. }
  30. /**
  31. * 查询权限模块 用户列表
  32. *
  33. * @param postUser 权限模块 用户
  34. * @return 权限模块 用户
  35. */
  36. @Override
  37. public List<PostUser> selectPostUserList(PostUser postUser)
  38. {
  39. return postUserMapper.selectPostUserList(postUser);
  40. }
  41. /**
  42. * 新增权限模块 用户
  43. *
  44. * @param postUser 权限模块 用户
  45. * @return 结果
  46. */
  47. @Override
  48. public int insertPostUser(PostUser postUser)
  49. {
  50. return postUserMapper.insertPostUser(postUser);
  51. }
  52. /**
  53. * 修改权限模块 用户
  54. *
  55. * @param postUser 权限模块 用户
  56. * @return 结果
  57. */
  58. @Override
  59. public int updatePostUser(PostUser postUser)
  60. {
  61. return postUserMapper.updatePostUser(postUser);
  62. }
  63. /**
  64. * 批量删除权限模块 用户
  65. *
  66. * @param ids 需要删除的权限模块 用户主键
  67. * @return 结果
  68. */
  69. @Override
  70. public int deletePostUserByIds(Long[] ids)
  71. {
  72. return postUserMapper.deletePostUserByIds(ids);
  73. }
  74. /**
  75. * 删除权限模块 用户信息
  76. *
  77. * @param id 权限模块 用户主键
  78. * @return 结果
  79. */
  80. @Override
  81. public int deletePostUserById(Long id)
  82. {
  83. return postUserMapper.deletePostUserById(id);
  84. }
  85. }