Merge pull request #7777 from dataease/pr@dev-v2@sync-latestUse-fix

fix(同步管理-数据连接管理): 查询最近创建时,添加根据源类型过滤,源或者目标源
This commit is contained in:
jianneng-fit2cloud 2024-01-23 23:13:33 +08:00 committed by GitHub
commit 73d7768c5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -7,8 +7,8 @@ export const sourceDsPageApi = (page: number, limit: number, data) => {
export const targetDsPageApi = (page: number, limit: number, data) => {
return request.post({ url: `/sync/datasource/target/pager/${page}/${limit}`, data })
}
export const latestUseApi = () => {
return request.post({ url: '/sync/datasource/latestUse', data: {} })
export const latestUseApi = (sourceType: string) => {
return request.post({ url: `/sync/datasource/latestUse/${sourceType}`, data: {} })
}
export const validateApi = data => {

View File

@ -56,8 +56,8 @@ public interface SyncDatasourceApi {
@GetMapping("/validate/{datasourceId}")
SyncDatasourceDTO validate(@PathVariable("datasourceId") String datasourceId) throws DEException;
@PostMapping("/latestUse")
List<String> latestUse();
@PostMapping("/latestUse/{sourceType}")
List<String> latestUse(@PathVariable("sourceType") String sourceType);
@GetMapping("/get/{datasourceId}")
SyncDatasourceDTO get(@PathVariable("datasourceId") String datasourceId) throws DEException;