mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-31 11:42:41 +08:00
support table online edit
This commit is contained in:
@ -167,7 +167,7 @@ public class TableController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/modify/sql")
|
||||
public ListResult<SqlVO> modifySql(@Valid TableModifySqlRequest request) {
|
||||
public ListResult<SqlVO> modifySql(@Valid @RequestBody TableModifySqlRequest request) {
|
||||
return tableService.buildSql(
|
||||
rdbWebConverter.tableRequest2param(request.getOldTable()),
|
||||
rdbWebConverter.tableRequest2param(request.getNewTable()))
|
||||
|
@ -2,6 +2,7 @@ package ai.chat2db.server.web.api.controller.rdb.request;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import ai.chat2db.spi.model.TableColumn;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
@ -30,7 +31,7 @@ public class TableRequest {
|
||||
/**
|
||||
* 列
|
||||
*/
|
||||
private List<ColumnRequest> columnList;
|
||||
private List<TableColumn> columnList;
|
||||
|
||||
/**
|
||||
* 索引
|
||||
|
Reference in New Issue
Block a user