类 TableController

java.lang.Object
com.jeeplus.devtools.controller.TableController

@RestController("genTableController") @RequestMapping("/devtools/table") public class TableController extends Object
业务表Controller
版本:
2021-10-15
作者:
jeeplus
  • 字段详细资料

    • demoMode

      @Value("${demoMode}") public boolean demoMode
    • templateService

      @Autowired public TemplateService templateService
    • tableService

      @Autowired public TableService tableService
    • schemaService

      @Autowired public SchemaService schemaService
    • primary

      @Value("${spring.datasource.dynamic.primary}") public String primary
  • 构造器详细资料

    • TableController

      public TableController()
  • 方法详细资料

    • initBinder

      @InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
    • list

      @GetMapping("list") public org.springframework.http.ResponseEntity list(com.baomidou.mybatisplus.extension.plugins.pagination.Page<TableDTO> page, TableDTO tableDTO, jakarta.servlet.http.HttpServletRequest request) throws Exception
      抛出:
      Exception
    • queryById

      @RequestMapping("queryById") public org.springframework.http.ResponseEntity queryById(@RequestParam("id") String id)
    • copyTable

      @RequestMapping("copyTable") public org.springframework.http.ResponseEntity copyTable(@RequestParam("id") String id, @RequestParam("newTableName") String newTableName)
    • queryConfig

      @GetMapping("queryConfig") public org.springframework.http.ResponseEntity queryConfig() throws Exception
      抛出:
      Exception
    • save

      @PostMapping("save") public org.springframework.http.ResponseEntity save(@RequestBody TableDTO tableDTO)
    • saveTableFromDB

      @PostMapping("saveTableFromDB") public org.springframework.http.ResponseEntity saveTableFromDB(@RequestBody TableDTO tableDTO)
      数据库导入表单
    • importTableData

      @PreAuthorize("hasAuthority(\'gencode:table:importDb\')") @GetMapping("importTableData") public org.springframework.http.ResponseEntity importTableData(TableDTO tableDTO)
    • deleteDb

      @PreAuthorize("hasAuthority(\'gencode:table:del\')") @RequestMapping("deleteDb") public org.springframework.http.ResponseEntity deleteDb(TableDTO tableDTO) throws Exception
      抛出:
      Exception
    • delete

      @PreAuthorize("hasAuthority(\'gencode:table:del\')") @RequestMapping("delete") public org.springframework.http.ResponseEntity delete(@RequestParam("ids") String ids)
    • synchDb

      @PreAuthorize("hasAuthority(\'gencode:table:synchDb\')") @PostMapping("synchDb") public org.springframework.http.ResponseEntity synchDb(TableDTO genTable, @RequestParam(value="isForce",required=false) String isForce) throws Exception
      抛出:
      Exception
    • queryGenCodeForm

      @GetMapping("queryGenCodeForm") public org.springframework.http.ResponseEntity queryGenCodeForm(Scheme scheme) throws Exception
      抛出:
      Exception
    • genCode

      @PostMapping("genCode") public org.springframework.http.ResponseEntity genCode(@RequestBody SchemeDTO schemeDTO) throws Exception
      抛出:
      Exception
    • getFormUrl

      @GetMapping("getFormUrl") public org.springframework.http.ResponseEntity getFormUrl(@RequestParam(value="tableId",required=false) String tableId)
      获取流程表单URL