class DatabaseSetController {

    @RequestMapping(value = "/check")
    public ConfigCkeckResult check(@CurrentUser LoginUser user, @RequestParam("id") Long id) throws Exception {
        DatabaseSet databaseSet = databaseSetDao.getDatabaseSetById(id);
        ConfigCkeckResult<List<ConfigDataResponse>> sr = databaseSetService.getCheckData(user, databaseSet);
        if (sr.getCode() == ConfigCkeckResult.ERROR) {
            return sr;
        }
        return ConfigCheckSubset.checkData(sr.getItem());
    }

}