RoleService.java 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. package com.gz.service.system;
  2. import cn.hutool.core.lang.tree.Tree;
  3. import cn.hutool.json.JSONObject;
  4. import com.github.pagehelper.PageInfo;
  5. import com.gz.dto.system.RoleDTO;
  6. import com.gz.vo.system.RoleMenuVO;
  7. import com.gz.vo.system.RoleVO;
  8. import java.util.List;
  9. public interface RoleService {
  10. /**
  11. * @description 增
  12. * @author LiuChangLan
  13. * @since 2020/9/4 14:46
  14. */
  15. Integer insert(RoleDTO roleDTO);
  16. /**
  17. * @description 删
  18. * @author LiuChangLan
  19. * @since 2020/9/4 14:46
  20. */
  21. Integer delete(Integer id);
  22. /**
  23. * @description 改
  24. * @author LiuChangLan
  25. * @since 2020/9/4 14:46
  26. */
  27. Integer update(RoleDTO roleDTO);
  28. /**
  29. * @description 查(给分页参数查分页 没给查全部)
  30. * @author LiuChangLan
  31. * @since 2020/9/4 14:46
  32. */
  33. PageInfo<RoleDTO> select(RoleVO roleVO);
  34. /**
  35. * @description 根据主键查询
  36. * @author LiuChangLan
  37. * @since 2020/9/4 16:35
  38. */
  39. RoleDTO selectByPrimaryKey(Integer id);
  40. /**
  41. * @description 设置权限
  42. * @author LiuChangLan
  43. * @since 2020/9/22 9:51
  44. */
  45. Integer setRole(RoleMenuVO vo);
  46. /**
  47. * @description 查询权限树
  48. * @author LiuChangLan
  49. * @since 2021/3/31 13:50
  50. */
  51. List<Tree<String>> selectRoleList(Integer roleId);
  52. /**
  53. * @description 查询所有权限
  54. * @author LiuChangLan
  55. * @since 2021/3/31 13:50
  56. */
  57. List<RoleDTO> selectAllRole();
  58. /**
  59. * @description 查询档案信息权限
  60. * @author LiuChangLan
  61. * @since 2021/3/31 14:31
  62. */
  63. List<JSONObject> selectShowArchive(Integer roleId);
  64. /**
  65. * 查看权限是否需要生成水印
  66. *
  67. * @param roleId 权限id
  68. * @param roleLabel 权限标识 1:详情 2:文件 3:水印 4:下载
  69. * @author LiuChangLan
  70. * @since 2022/2/24 17:32
  71. */
  72. Boolean selectArchiveRole(Integer roleId, Integer roleLabel);
  73. }