Commit 2fead9b6 by 陶光胜

获取超级管理员菜单接口

parent 45941978
......@@ -13,4 +13,13 @@ public interface MenuApiService {
* @return
*/
ServiceResponse<List<MenuDTO>> getUserMenu(Integer userId, Integer enterpriseId, Integer currentMenu);
/**
* 获取超级管理员菜单
* @param userId
* @param enterpriseId
* @param currentMenu
* @return
*/
ServiceResponse<List<MenuDTO>> getSuperAdminMenu(Integer userId, Integer enterpriseId);
}
......@@ -33,6 +33,11 @@ public class MenuApiServiceImpl implements MenuApiService {
return ServiceResponse.success(this.treeMenu(menuList, level, parentId));
}
@Override
public ServiceResponse<List<MenuDTO>> getSuperAdminMenu(Integer userId, Integer enterpriseId) {
return this.getUserMenu(userId, enterpriseId, null);
}
private List<MenuDTO> treeMenu(List<TabSysMenu> menuList, int level, int parentId){
List<MenuDTO> list = new ArrayList<>();
if(level < 5){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment