class DatabaseController {

    @RequestMapping(value = "/check")
    public ConfigCkeckResult check(@RequestParam("id") Long id, @CurrentUser LoginUser user) throws Exception {
        DataBaseInfo dataBaseInfo = dataBaseDao.getDataBaseInfoByDbId(id);
        ConfigCkeckResult<List<ConfigDataResponse>> sr = databaseService.getCheckData(user, dataBaseInfo);
        if (sr.getCode() == ConfigCkeckResult.ERROR) {
            return sr;
        }
        return ConfigCheckBase.checkData(sr.getItem());
    }

}