diff --git a/core/core-frontend/src/api/sync/syncDatasource.ts b/core/core-frontend/src/api/sync/syncDatasource.ts index 6de7e8eebb..919fdc6d1e 100644 --- a/core/core-frontend/src/api/sync/syncDatasource.ts +++ b/core/core-frontend/src/api/sync/syncDatasource.ts @@ -45,3 +45,7 @@ export const batchDelApi = (ids: string[]) => { export const getFieldListApi = data => { return request.post({ url: `/sync/datasource/fields`, data }) } + +export const validateByIdApi = (id: string) => { + return request.get({ url: `/sync/datasource/validate/${id}` }) +}