RuoYi
2023-04-05 68eac98acf3068db1cc88aad917a6160ee1839f4
ruoyi-modules/ruoyi-gen/src/main/java/com/ruoyi/gen/controller/GenController.java
@@ -69,7 +69,7 @@
        map.put("info", table);
        map.put("rows", list);
        map.put("tables", tables);
        return AjaxResult.success(map);
        return success(map);
    }
    /**
@@ -87,7 +87,7 @@
    /**
     * 查询数据表字段列表
     */
    @GetMapping(value = "/column/{talbleId}")
    @GetMapping(value = "/column/{tableId}")
    public TableDataInfo columnList(Long tableId)
    {
        TableDataInfo dataInfo = new TableDataInfo();
@@ -109,7 +109,7 @@
        // 查询表信息
        List<GenTable> tableList = genTableService.selectDbTableListByNames(tableNames);
        genTableService.importGenTable(tableList);
        return AjaxResult.success();
        return success();
    }
    /**
@@ -122,7 +122,7 @@
    {
        genTableService.validateEdit(genTable);
        genTableService.updateGenTable(genTable);
        return AjaxResult.success();
        return success();
    }
    /**
@@ -134,7 +134,7 @@
    public AjaxResult remove(@PathVariable Long[] tableIds)
    {
        genTableService.deleteGenTableByIds(tableIds);
        return AjaxResult.success();
        return success();
    }
    /**
@@ -145,7 +145,7 @@
    public AjaxResult preview(@PathVariable("tableId") Long tableId) throws IOException
    {
        Map<String, String> dataMap = genTableService.previewCode(tableId);
        return AjaxResult.success(dataMap);
        return success(dataMap);
    }
    /**
@@ -169,7 +169,7 @@
    public AjaxResult genCode(@PathVariable("tableName") String tableName)
    {
        genTableService.generatorCode(tableName);
        return AjaxResult.success();
        return success();
    }
    /**
@@ -181,7 +181,7 @@
    public AjaxResult synchDb(@PathVariable("tableName") String tableName)
    {
        genTableService.synchDb(tableName);
        return AjaxResult.success();
        return success();
    }
    /**