ModuleButtonService.java 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. package jnpf.base.service;
  2. import jnpf.base.service.SuperService;
  3. import com.baomidou.mybatisplus.extension.service.IService;
  4. import jnpf.base.Pagination;
  5. import jnpf.base.entity.ModuleButtonEntity;
  6. import java.util.List;
  7. /**
  8. * 按钮权限
  9. *
  10. * @author JNPF开发平台组
  11. * @version V3.1.0
  12. * @copyright 引迈信息技术有限公司
  13. * @date 2019年9月27日 上午9:18
  14. */
  15. public interface ModuleButtonService extends SuperService<ModuleButtonEntity> {
  16. /**
  17. * 列表
  18. *
  19. * @return ignore
  20. */
  21. List<ModuleButtonEntity> getList();
  22. /**
  23. * 列表
  24. *
  25. * @return ignore
  26. */
  27. List<ModuleButtonEntity> getEnabledMarkList(String enabledMark);
  28. /**
  29. * 列表
  30. *
  31. * @param moduleId 功能主键
  32. * @return ignore
  33. */
  34. List<ModuleButtonEntity> getListByModuleIds(String moduleId);
  35. /**
  36. * 列表(带关键字的)
  37. *
  38. * @param moduleId 功能主键
  39. * @param pagination 分页参数
  40. * @return ignore
  41. */
  42. List<ModuleButtonEntity> getListByModuleIds(String moduleId, Pagination pagination);
  43. /**
  44. * 信息
  45. *
  46. * @param id 主键值
  47. * @return ignore
  48. */
  49. ModuleButtonEntity getInfo(String id);
  50. /**
  51. * 信息
  52. *
  53. * @param id 主键值
  54. * @param moduleId
  55. * @return ignore
  56. */
  57. ModuleButtonEntity getInfo(String id, String moduleId);
  58. /**
  59. * 验证名称
  60. *
  61. * @param moduleId 功能主键
  62. * @param fullName 名称
  63. * @param id 主键值
  64. * @return ignore
  65. */
  66. boolean isExistByFullName(String moduleId, String fullName, String id);
  67. /**
  68. * 验证编码
  69. *
  70. * @param moduleId 功能主键
  71. * @param enCode 编码
  72. * @param id 主键值
  73. * @return ignore
  74. */
  75. boolean isExistByEnCode(String moduleId, String enCode, String id);
  76. /**
  77. * 创建
  78. *
  79. * @param entity 实体对象
  80. */
  81. void create(ModuleButtonEntity entity);
  82. /**
  83. * 更新
  84. *
  85. * @param id 主键值
  86. * @param entity 实体对象
  87. * @return ignore
  88. */
  89. boolean update(String id, ModuleButtonEntity entity);
  90. /**
  91. * 删除
  92. *
  93. * @param entity 实体对象
  94. */
  95. void delete(ModuleButtonEntity entity);
  96. /**
  97. * 通过moduleIds获取按钮权限
  98. *
  99. * @param ids
  100. * @return
  101. */
  102. List<ModuleButtonEntity> getListByModuleIds(List<String> ids, Integer type);
  103. /**
  104. * 通过moduleIds获取按钮权限
  105. *
  106. * @param ids
  107. * @return
  108. */
  109. List<ModuleButtonEntity> getListByIds(List<String> ids);
  110. }