类 GenController

java.lang.Object
top.binfast.daemon.codegen.controller.GenController

@Validated @RestController @RequestMapping("/tool/gen") public class GenController extends Object
代码生成 操作处理
作者:
Lion Li
  • 构造器详细资料

    • GenController

      public GenController()
  • 方法详细资料

    • genList

      @GetMapping("/list") public com.alibaba.cola.dto.PageResponse<GenTable> genList(GenTableParam param)
      查询代码生成列表
    • getInfo

      @NoRepeatSubmit @GetMapping("/{tableId}") public com.alibaba.cola.dto.SingleResponse<Map<String,Object>> getInfo(@PathVariable Long tableId)
      修改代码生成业务
      参数:
      tableId - 表ID
    • dataList

      @GetMapping("/db/list") public com.alibaba.cola.dto.PageResponse<GenTable> dataList(GenTableParam param)
      查询数据库列表
    • columnList

      @GetMapping("/column/{tableId}") public com.alibaba.cola.dto.PageResponse<GenTableColumn> columnList(@PathVariable("tableId") Long tableId)
      查询数据表字段列表
      参数:
      tableId - 表ID
    • importTableSave

      @NoRepeatSubmit @PostMapping("/importTable") public com.alibaba.cola.dto.Response importTableSave(@RequestBody GenImportParam genImportParam)
      导入表结构(保存)
      参数:
      genImportParam - 表名
    • editSave

      @NoRepeatSubmit @PutMapping public com.alibaba.cola.dto.Response editSave(@Validated @RequestBody GenTable genTable)
      修改保存代码生成业务
    • remove

      @DeleteMapping("/{tableIds}") public com.alibaba.cola.dto.Response remove(@PathVariable Long[] tableIds)
      删除代码生成
      参数:
      tableIds - 表ID串
    • preview

      @GetMapping("/preview/{tableId}") public com.alibaba.cola.dto.SingleResponse<Map<String,String>> preview(@PathVariable("tableId") Long tableId) throws IOException
      预览代码
      参数:
      tableId - 表ID
      抛出:
      IOException
    • download

      @GetMapping("/download/{tableId}") public void download(jakarta.servlet.http.HttpServletResponse response, @PathVariable("tableId") Long tableId) throws IOException
      生成代码(下载方式)
      参数:
      tableId - 表ID
      抛出:
      IOException
    • genCode

      @GetMapping("/genCode/{tableId}") public com.alibaba.cola.dto.Response genCode(@PathVariable("tableId") Long tableId)
      生成代码(自定义路径)
      参数:
      tableId - 表ID
    • synchDb

      @Lock4j @GetMapping("/synchDb/{tableId}") public com.alibaba.cola.dto.Response synchDb(@PathVariable("tableId") Long tableId)
      同步数据库
      参数:
      tableId - 表ID
    • batchGenCode

      @GetMapping("/batchGenCode") public void batchGenCode(jakarta.servlet.http.HttpServletResponse response, String tableIdStr) throws IOException
      批量生成代码
      参数:
      tableIdStr - 表ID串
      抛出:
      IOException
    • getCurrentDataSourceNameList

      @GetMapping("/getDataNames") public com.alibaba.cola.dto.SingleResponse<Set<String>> getCurrentDataSourceNameList()
      查询数据源名称列表
    • optionselect

      @GetMapping("/dict/optionselect") public com.alibaba.cola.dto.MultiResponse<top.binfast.common.dict.model.SysDictType> optionselect()
      获取字典选择框列表
    • findList

      @GetMapping("/menu/tree") public com.alibaba.cola.dto.MultiResponse<top.binfast.app.biz.sysapi.bean.vo.sysMenu.SysMenuDTO> findList()
      获取菜单树
      返回:
      菜单树