public interface MenuServiceApi
| 限定符和类型 | 方法和说明 |
|---|---|
List<IndexMenuInfo> |
buildAuthorities(Integer menuFrontType)
构建Antdv3版本的菜单和权限信息
|
Set<Long> |
getMenuAllParentMenuId(Set<Long> menuIds)
获取菜单所有的父级菜单ID
|
String |
getMenuButtonCodeByButtonId(Long buttonId)
通过按钮id获取按钮code
|
List<String> |
getResourceCodesByBusinessId(List<Long> businessIds)
通过菜单或按钮id的集合,获取拥有资源编码的集合
|
List<MenuAndButtonTreeResponse> |
getRoleMenuAndButtons(SysRoleRequest sysRoleRequest)
获取角色绑定菜单和按钮权限的树
|
List<String> |
getUserAppCodeList()
获取当前用户所拥有菜单对应的appCode列表
|
boolean |
hasMenu(String appCode)
根据应用编码判断该机构下是否有状态为正常的菜单
|
boolean hasMenu(String appCode)
appCode - 应用编码Set<Long> getMenuAllParentMenuId(Set<Long> menuIds)
menuIds - 菜单列表Set<java.lang.Long>List<String> getResourceCodesByBusinessId(List<Long> businessIds)
List<IndexMenuInfo> buildAuthorities(Integer menuFrontType)
menuFrontType - 菜单的前后台类型,如果没传递,默认查前台菜单List<MenuAndButtonTreeResponse> getRoleMenuAndButtons(SysRoleRequest sysRoleRequest)
Copyright © 2022. All rights reserved.