@RestController(value="genTableController") @RequestMapping(value="/devtools/table") public class TableController extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
boolean |
demoMode |
String |
primary |
SchemaService |
schemaService |
TableService |
tableService |
TemplateService |
templateService |
| 构造器和说明 |
|---|
TableController() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.http.ResponseEntity |
copyTable(String id,
String newTableName) |
org.springframework.http.ResponseEntity |
delete(String ids) |
org.springframework.http.ResponseEntity |
deleteDb(TableDTO tableDTO) |
org.springframework.http.ResponseEntity |
genCode(SchemeDTO schemeDTO) |
TableDTO |
get(TableDTO tableDTO) |
org.springframework.http.ResponseEntity |
getFormUrl(String tableId)
获取流程表单URL
|
org.springframework.http.ResponseEntity |
importTableData(TableDTO tableDTO) |
void |
initBinder(org.springframework.web.bind.WebDataBinder binder) |
org.springframework.http.ResponseEntity |
list(com.baomidou.mybatisplus.extension.plugins.pagination.Page<TableDTO> page,
TableDTO tableDTO,
javax.servlet.http.HttpServletRequest request) |
org.springframework.http.ResponseEntity |
queryById(String id) |
org.springframework.http.ResponseEntity |
queryConfig() |
org.springframework.http.ResponseEntity |
queryGenCodeForm(Scheme scheme) |
org.springframework.http.ResponseEntity |
save(TableDTO tableDTO) |
org.springframework.http.ResponseEntity |
saveTableFromDB(TableDTO tableDTO)
数据库导入表单
|
org.springframework.http.ResponseEntity |
synchDb(TableDTO genTable,
String isForce) |
@Value(value="${demoMode}")
public boolean demoMode
@Autowired public TemplateService templateService
@Autowired public TableService tableService
@Autowired public SchemaService schemaService
@Value(value="${spring.datasource.dynamic.primary}")
public String primary
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder binder)
@GetMapping(value="list") public org.springframework.http.ResponseEntity list(com.baomidou.mybatisplus.extension.plugins.pagination.Page<TableDTO> page, TableDTO tableDTO, javax.servlet.http.HttpServletRequest request) throws Exception
Exception@RequestMapping(value="queryById")
public org.springframework.http.ResponseEntity queryById(@RequestParam(value="id")
String id)
@RequestMapping(value="copyTable")
public org.springframework.http.ResponseEntity copyTable(@RequestParam(value="id")
String id,
@RequestParam(value="newTableName")
String newTableName)
@GetMapping(value="queryConfig")
public org.springframework.http.ResponseEntity queryConfig()
throws Exception
Exception@PostMapping(value="save")
public org.springframework.http.ResponseEntity save(@RequestBody
TableDTO tableDTO)
@PostMapping(value="saveTableFromDB")
public org.springframework.http.ResponseEntity saveTableFromDB(@RequestBody
TableDTO tableDTO)
@PreAuthorize(value="hasAuthority(\'gencode:table:importDb\')") @GetMapping(value="importTableData") public org.springframework.http.ResponseEntity importTableData(TableDTO tableDTO)
@PreAuthorize(value="hasAuthority(\'gencode:table:del\')") @RequestMapping(value="deleteDb") public org.springframework.http.ResponseEntity deleteDb(TableDTO tableDTO) throws Exception
Exception@PreAuthorize(value="hasAuthority(\'gencode:table:del\')")
@RequestMapping(value="delete")
public org.springframework.http.ResponseEntity delete(@RequestParam(value="ids")
String ids)
@PreAuthorize(value="hasAuthority(\'gencode:table:synchDb\')") @PostMapping(value="synchDb") public org.springframework.http.ResponseEntity synchDb(TableDTO genTable, @RequestParam(value="isForce",required=false) String isForce) throws Exception
Exception@GetMapping(value="queryGenCodeForm") public org.springframework.http.ResponseEntity queryGenCodeForm(Scheme scheme) throws Exception
Exception@PostMapping(value="genCode")
public org.springframework.http.ResponseEntity genCode(@RequestBody
SchemeDTO schemeDTO)
throws Exception
Exception@GetMapping(value="getFormUrl")
public org.springframework.http.ResponseEntity getFormUrl(@RequestParam(value="tableId",required=false)
String tableId)
Copyright © 2022. All rights reserved.