feat: choose tables, save table and field

This commit is contained in:
junjun
2025-05-16 11:22:39 +08:00
parent ddf4f2ee29
commit cfffafaae8
5 changed files with 93 additions and 51 deletions
+2
View File
@@ -10,4 +10,6 @@ export const datasourceApi = {
getTablesByConf: (data: any) => request.post('/datasource/getTablesByConf', data),
getFields: (id: Number, table_name: string) => request.post(`/datasource/getFields/${id}/${table_name}`),
execSql: (id: Number, sql: string) => request.post(`/datasource/execSql/${id}/${sql}`),
chooseTables: (id: Number, data: any) => request.post(`/datasource/chooseTables/${id}`, data),
tableList: (id: Number) => request.post(`/datasource/tableList/${id}`)
}