@GetMapping("/getDocMenus")
    public ShenyuAdminResult getAllDoc() {
        Collection<DocInfo> docInfos = docManager.listAll();
        List<MenuProjectVO> menuProjectList = docInfos.stream()
            .map(getMenuAndDocInfo())
            .collect(Collectors.toList());
        DocVO docVO = new DocVO();
        docVO.setMenuProjects(menuProjectList);
        List<ShenyuDictVO> dictVOList = shenyuDictService.list(AdminConstants.DICT_TYPE_API_DOC_ENV);
        List<DocVO.EnvConfig> envConfigs = dictVOList.stream()
            .filter(ShenyuDictVO::getEnabled)
            .map(dictVO -> {
                DocVO.EnvConfig envConfig = new DocVO.EnvConfig();
                envConfig.setEnvLabel(dictVO.getDictName());
                envConfig.setAddressUrl(dictVO.getDictValue());
                envConfig.setEnvDesc(dictVO.getDesc());
                return envConfig;
            })
            .collect(Collectors.toList());
        docVO.setEnvProps(envConfigs);
        if (CollectionUtils.isNotEmpty(envConfigs)) {
            docVO.setGatewayUrl(envConfigs.get(0).getAddressUrl());
        }
        return ShenyuAdminResult.success(docVO);
    }
@Test
    public void testGetAllDoc() throws Exception {
        List<ShenyuDictVO> shenyuDictVOS = new ArrayList<>();
        given(this.shenyuDictService.list(any())).willReturn(shenyuDictVOS);
        this.mockMvc.perform(MockMvcRequestBuilders.get("/apidoc/getDocMenus"))
                .andExpect(status().isOk())
                .andReturn();
    }