fix(同步管理-数据连接管理): 查询最近创建时,添加根据源类型过滤,源或者目标源

This commit is contained in:
jianneng-fit2cloud 2024-01-23 23:09:08 +08:00
parent 7bb9a610d2
commit 8efe8b0ce5
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;