class DatabaseController {

    @RequestMapping(value = "/sync")
    public ServiceResult<String> sync(@RequestParam("id") Long id, @CurrentUser LoginUser user) throws Exception {
        DataBaseInfo dataBaseInfo = dataBaseDao.getDataBaseInfoByDbId(id);
        return databaseService.syncDataCenter(user, dataBaseInfo);
    }

}