use of com.github.liuweijw.business.admin.beans.MenuTreeBean in project fw-cloud-framework by liuweijw.
the class MenuController method menuTreeList.
// 获取所有菜单列表 以及功能权限
@GetMapping(value = "/menuTreeList/{roleCode}")
@PrePermissions(value = Functional.VIEW)
public R<MenuTreeBean> menuTreeList(@PathVariable("roleCode") String roleCode) {
MenuTreeBean menuTreeBean = new MenuTreeBean();
List<MenuTree> menuTree = menuService.findAllMenuTree();
menuTreeBean.setMenuList(menuTree);
Set<String> permissions = new HashSet<String>();
permissions.addAll(permissionService.findMenuPermissions(roleCode));
menuTreeBean.setPermissions(permissions.toArray(new String[permissions.size()]));
return new R<MenuTreeBean>().data(menuTreeBean);
}
use of com.github.liuweijw.business.admin.beans.MenuTreeBean in project fw-cloud-framework by liuweijw.
the class MenuController method menuTreeList.
// 获取所有菜单列表
@GetMapping(value = "/menuTreeAllList")
@PrePermissions(value = Functional.VIEW)
public R<MenuTreeBean> menuTreeList() {
MenuTreeBean menuTreeBean = new MenuTreeBean();
List<MenuTree> menuTree = menuService.findAllMenuTreeList();
menuTreeBean.setMenuList(menuTree);
return new R<MenuTreeBean>().data(menuTreeBean);
}
Aggregations