@PostMapping("/config")
    public Result<Boolean> addConfig(@RequestBody ConfigInfo configInfo) {
        if (StringUtils.isEmpty(configInfo.getGroup()) || StringUtils.isEmpty(configInfo.getKey())
                || StringUtils.isEmpty(configInfo.getContent())) {
            return new Result<>(ResultCodeType.MISS_PARAM.getCode(), ResultCodeType.MISS_PARAM.getMessage());
        }
        Result<List<ConfigInfo>> result = configService.getConfigList(configInfo, PluginType.OTHER, true);
        if (CollectionUtils.isEmpty(result.getData())) {
            return configService.publishConfig(configInfo);
        }
        return new Result<>(ResultCodeType.EXISTS.getCode(), ResultCodeType.EXISTS.getMessage());
    }
@Test
    public void addConfig() {
        Result<Boolean> result = configController.addConfig(configInfo);
        Assert.assertFalse(result.isSuccess());
        Result<Boolean> result1 = configController.addConfig(addConfigInfo);
        Assert.assertTrue(result1.isSuccess());
    }