| | |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | |
| | | @ApiOperation("菜单权限-个人菜单查询") |
| | | @GetMapping("/menu/search_myself") |
| | | @LogSave(contain = "登录拿到个人菜单",operationType = "个人操作") |
| | | public CommonResult searchMenusMyself() { |
| | | AdminUserDetails user = (AdminUserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal(); |
| | | return CommonResult.success(umsMenuService.ListTreeMyself(user.getUserId())); |
| | | HashMap<String, Object> map = new HashMap<>(); |
| | | map.put("menu",umsMenuService.ListTreeMyself(user.getUserId())); |
| | | map.put("permission",umsMenuService.getPermission(user.getUserId())); |
| | | return CommonResult.success(map); |
| | | } |
| | | |
| | | @ApiOperation("菜单权限-个人菜单状态修改") |