@GetMapping("/getUserPermissionByToken")
    public ShenyuAdminResult getUserPermissionByToken(@RequestParam(name = "token", required = false) final String token,
                                                      @RequestParam(name = "namespaceId", required = false) final String namespaceId) {
        PermissionMenuVO permissionMenuVO = permissionService.getPermissionMenu(namespaceId);
        return Optional.ofNullable(permissionMenuVO)
                .map(item -> ShenyuAdminResult.success(ShenyuResultMessage.MENU_SUCCESS, item))
                .orElseGet(() -> ShenyuAdminResult.error(ShenyuResultMessage.MENU_FAILED));
    }
get menu by token.

@param token login success ack token
@param namespaceId namespace id
@return {@linkplain ShenyuAdminResult}
shenyu-admin/src/main/java/org/apache/shenyu/admin/controller/PermissionController.java