SystemService.java 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. package jnpf.base.service;
  2. import jnpf.base.entity.SystemEntity;
  3. import jnpf.base.model.AppAuthorizationModel;
  4. import jnpf.permission.model.user.WorkHandoverModel;
  5. import java.util.List;
  6. /**
  7. * 系统
  8. *
  9. * @author JNPF开发平台组
  10. * @version V3.1.0
  11. * @copyright 引迈信息技术有限公司
  12. * @date 2019年9月27日 上午9:18
  13. */
  14. public interface SystemService extends SuperService<SystemEntity> {
  15. /**
  16. * 获取列表
  17. *
  18. * @return
  19. */
  20. List<SystemEntity> getList();
  21. /**
  22. * 获取系统列表
  23. *
  24. * @param keyword
  25. * @param filterMain
  26. * @param isList
  27. * @param moduleAuthorize
  28. * @return
  29. */
  30. List<SystemEntity> getList(String keyword, Boolean filterEnableMark, boolean verifyAuth, Boolean filterMain, boolean isList, List<String> moduleAuthorize);
  31. /**
  32. * 获取列表
  33. *
  34. * @return
  35. */
  36. List<SystemEntity> getListByIdsKey(List<String> ids, String keyword);
  37. /**
  38. * 获取详情
  39. *
  40. * @param id
  41. * @return
  42. */
  43. SystemEntity getInfo(String id);
  44. /**
  45. * 判断系统名称是否重复
  46. *
  47. * @param id
  48. * @param fullName
  49. * @return
  50. */
  51. Boolean isExistFullName(String id, String fullName);
  52. /**
  53. * 判断系统编码是否重复
  54. *
  55. * @param id
  56. * @param enCode
  57. * @return
  58. */
  59. Boolean isExistEnCode(String id, String enCode);
  60. /**
  61. * 新建
  62. *
  63. * @param entity
  64. * @return
  65. */
  66. Boolean create(SystemEntity entity);
  67. /**
  68. * 新建
  69. *
  70. * @param entity
  71. * @return
  72. */
  73. Boolean update(String id, SystemEntity entity);
  74. /**
  75. * 删除
  76. *
  77. * @param id
  78. * @return
  79. */
  80. Boolean delete(String id);
  81. /**
  82. * 通过id获取系统列表
  83. *
  84. * @param list
  85. * @param moduleAuthorize
  86. * @return
  87. */
  88. List<SystemEntity> getListByIds(List<String> list, List<String> moduleAuthorize);
  89. /**
  90. * 通过编码获取系统信息
  91. *
  92. * @param enCode
  93. * @return
  94. */
  95. SystemEntity getInfoByEnCode(String enCode);
  96. /**
  97. * 获取
  98. *
  99. * @param moduleAuthorize
  100. * @return
  101. */
  102. List<SystemEntity> findSystemAdmin(List<String> moduleAuthorize);
  103. boolean saveSystemAuthorizion(AppAuthorizationModel model);
  104. /**
  105. * 获取当前用户有编辑权限的应用
  106. *
  107. * @param userId
  108. * @param isStand 是否判断当前身份
  109. * @return
  110. */
  111. List<SystemEntity> getAuthListByUser(String userId, Boolean isStand);
  112. /**
  113. * 工作交接-交接应用
  114. *
  115. * @param workHandoverModel
  116. */
  117. void workHandover(WorkHandoverModel workHandoverModel);
  118. void changeSystemAuthorizion(AppAuthorizationModel model);
  119. List<SystemEntity> getListByIds(List<String> systemId, List<String> moduleAuthorize, int type);
  120. /**
  121. * 获取当前用户创建应用所有菜单id
  122. *
  123. * @param userId
  124. * @return
  125. */
  126. List<SystemEntity> getListByCreUser(String userId);
  127. }