From 75e35ac493ae4fb6f73c97f49f75788595ece875 Mon Sep 17 00:00:00 2001 From: huanghongfa <18228131219@163.com> Date: 星期三, 13 一月 2021 17:57:41 +0800 Subject: [PATCH] 环境修改 --- springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/RoleApi.java | 16 +++++++++++++--- 1 files changed, 13 insertions(+), 3 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/RoleApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/RoleApi.java index f56170c..f053f90 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/RoleApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/api/RoleApi.java @@ -83,12 +83,12 @@ /** * 平台菜单列表 - * @param type 1 运营平台 2 社区平台 + * @param communityId 社区id 0 运营平台 * @return 菜单集合 */ @PostMapping("listmenubackstage") - public R listMenuBackstage(@RequestParam("type")int type){ - return roleService.listMenuBackstage(type); + public R listMenuBackstage(@RequestParam("communityId")Long communityId){ + return roleService.listMenuBackstage(communityId); } /** @@ -100,4 +100,14 @@ public R putMenuRole(@RequestBody MenuRoleVO menuRoleVO){ return roleService.putMenuRole(menuRoleVO); } + + /** + * 用户菜单获取 + * @param userId 登录用户id + * @return 用户菜单 + */ + @PostMapping("listmenu") + public R listmenu(@RequestParam("userId")Long userId){ + return roleService.listmenu(userId); + } } -- Gitblit v1.7.1