|
@@ -4,8 +4,10 @@ package com.usky.system.controller.web;
|
|
import com.usky.common.core.bean.ApiResult;
|
|
import com.usky.common.core.bean.ApiResult;
|
|
import com.usky.system.domain.SysMenu;
|
|
import com.usky.system.domain.SysMenu;
|
|
import com.usky.system.domain.SysMobileMenu;
|
|
import com.usky.system.domain.SysMobileMenu;
|
|
|
|
+import com.usky.system.domain.SysTenant;
|
|
import com.usky.system.service.ISysMenuService;
|
|
import com.usky.system.service.ISysMenuService;
|
|
import com.usky.system.service.SysPlatformMenuService;
|
|
import com.usky.system.service.SysPlatformMenuService;
|
|
|
|
+import com.usky.system.service.SysTenantService;
|
|
import com.usky.system.service.vo.TenantMenuVo;
|
|
import com.usky.system.service.vo.TenantMenuVo;
|
|
import com.usky.system.service.vo.MobileTenantMenuVO;
|
|
import com.usky.system.service.vo.MobileTenantMenuVO;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -31,6 +33,9 @@ public class AuthorityConfigController {
|
|
@Autowired
|
|
@Autowired
|
|
private ISysMenuService menuService;
|
|
private ISysMenuService menuService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private SysTenantService sysTenantService;
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 租户管理-权限配置-目录查询
|
|
* 租户管理-权限配置-目录查询
|
|
@@ -80,6 +85,25 @@ public class AuthorityConfigController {
|
|
return ApiResult.success(ajax);
|
|
return ApiResult.success(ajax);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 手机端APP租户管理-权限配置-目录查询
|
|
|
|
+ *
|
|
|
|
+ * @param domain 域名
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("getAppConfigMenuList")
|
|
|
|
+ public ApiResult<Map<String, Object>> getAppConfigMenuList(@RequestParam(value = "domain") String domain) {
|
|
|
|
+ List<SysTenant> list = sysTenantService.getAppData(domain);
|
|
|
|
+
|
|
|
|
+ Integer tenantId = list.get(0).getId();
|
|
|
|
+ String platformId = list.get(0).getSystemName();
|
|
|
|
+ List<SysMobileMenu> menus =sysPlatformMenuService.getMobilePlatformMenuList(Integer.parseInt(platformId));
|
|
|
|
+ Map<String, Object> ajax = new HashMap<>();
|
|
|
|
+ ajax.put("checkedKeys", sysPlatformMenuService.selectMobilePlatformMenu(tenantId));
|
|
|
|
+ ajax.put("menus", menuService.buildMobileMenuTreeSelect(menus));
|
|
|
|
+ return ApiResult.success(ajax);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 租户管理-权限配置-目录保存
|
|
* 租户管理-权限配置-目录保存
|
|
*
|
|
*
|