class DatabaseSetController {

    @RequestMapping(value = "/update", method = RequestMethod.PUT)
    public ServiceResult<String> update(@Validated(UpdateDbSet.class) @RequestBody DatabaseSet dbset, @CurrentUser LoginUser user, Errors errors) throws Exception {
        dbset.setUpdateUserNo(user.getUserNo());
        ValidateResult validateRes = databaseSetService.validatePermision(user, errors)
                .addAssert(() -> databaseSetService.updateDatabaseSet(dbset) > 0, message.db_message_update_operation_failed).validate();
        if (!validateRes.isValid()) {
            return ServiceResult.fail(validateRes.getSummarize());
        }
        return databaseSetService.updateDataCenter(user, dbset);
    }

}