GroupService.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. package jnpf.permission.service;
  2. import jnpf.base.service.SuperService;
  3. import jnpf.permission.entity.GroupEntity;
  4. import jnpf.permission.model.usergroup.GroupPagination;
  5. import java.util.List;
  6. import java.util.Map;
  7. /**
  8. * 用户管理业务层
  9. *
  10. * @author :JNPF开发平台组
  11. * @version: V3.1.0
  12. * @copyright 引迈信息技术有限公司
  13. * @date :2022/3/10 17:59
  14. */
  15. public interface GroupService extends SuperService<GroupEntity> {
  16. /**
  17. * 获取用户列表
  18. *
  19. * @param pagination 关键字
  20. * @return
  21. */
  22. List<GroupEntity> getList(GroupPagination pagination);
  23. /**
  24. * 获取所有格分组信息
  25. *
  26. * @return
  27. */
  28. List<GroupEntity> list();
  29. Map<String, Object> getGroupMap();
  30. /**
  31. * fullName/encode,id
  32. *
  33. * @return
  34. */
  35. Map<String, Object> getGroupEncodeMap();
  36. Map<String, Object> getGroupEncodeMap(boolean enabledMark);
  37. /**
  38. * 获取用户详情
  39. *
  40. * @param id
  41. * @return
  42. */
  43. GroupEntity getInfo(String id);
  44. /**
  45. * 获取分组详情
  46. *
  47. * @param fullName
  48. * @param encode
  49. * @return
  50. */
  51. GroupEntity getInfo(String fullName, String encode);
  52. /**
  53. * 添加
  54. *
  55. * @param entity
  56. */
  57. void crete(GroupEntity entity);
  58. /**
  59. * 修改
  60. *
  61. * @param id
  62. * @param entity
  63. */
  64. Boolean update(String id, GroupEntity entity);
  65. /**
  66. * 删除
  67. *
  68. * @param entity
  69. */
  70. void delete(GroupEntity entity);
  71. /**
  72. * 判断名称是否重复
  73. *
  74. * @param fullName
  75. * @param id
  76. * @return
  77. */
  78. Boolean isExistByFullName(String fullName, String id);
  79. /**
  80. * 判断编码是否重复
  81. *
  82. * @param enCode
  83. * @param id
  84. * @return
  85. */
  86. Boolean isExistByEnCode(String enCode, String id);
  87. /**
  88. * 通过分组id获取分组集合
  89. *
  90. * @param idList
  91. * @return
  92. */
  93. List<GroupEntity> getListByIds(List<String> idList);
  94. /**
  95. * 通过分组id获取分组集合
  96. *
  97. * @param idList
  98. * @return
  99. */
  100. List<GroupEntity> getListByIds(List<String> idList, Boolean filter);
  101. }