forked from github/dataease
fix(同步管理-数据连接管理): 查询最近创建时,添加根据源类型过滤,源或者目标源
This commit is contained in:
parent
7bb9a610d2
commit
8efe8b0ce5
@ -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 => {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user