|
@@ -6,6 +6,7 @@ import com.dragoninfo.dcuc.auth.auth.entity.AppFunInfo;
|
|
|
import com.dragoninfo.dcuc.auth.auth.vo.AppFunInfoVo;
|
|
|
import com.dragoninfo.dcuc.auth.auth.vo.EventInfoVO;
|
|
|
import com.dragoninfo.dcuc.auth.auth.vo.TreeInfoVO;
|
|
|
+import com.dragoninfo.dcuc.auth.auth.vo.appfun.RespAppFunTreeVo;
|
|
|
import com.dragoninfo.dcuc.auth.power.facade.IAppFunInfoFacade;
|
|
|
import com.dragoninfo.dcuc.auth.power.facade.IFunEventFacade;
|
|
|
import com.dragoninfo.dcuc.authweb.restcontroller.auth.vo.AppFunTreeVo;
|
|
@@ -190,6 +191,18 @@ public class AppFunInfoController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+ * 查看角色关联的菜单树
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "角色关联的菜单树")
|
|
|
+ @ApiImplicitParam(name = "roleId", value = "角色id")
|
|
|
+ @GetMapping(value = "/menuTree")
|
|
|
+ public Result<List<RespAppFunTreeVo>> getRoleMenuTree(@RequestParam("roleId") String roleId) {
|
|
|
+ List<RespAppFunTreeVo> treeVos = iAppFunInfoFacade.getRoleMenuTree(roleId);
|
|
|
+ return Result.success(treeVos);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public List<TreeInfoVO> getChildTreeObjects(List<TreeInfoVO> list,
|
|
|
String parentCode) {
|
|
|
List<TreeInfoVO> returnList = new ArrayList<TreeInfoVO>();
|