|
|
@@ -157,7 +157,7 @@ export type FetchProjectListApi = () => Promise<any>;
|
|
|
export type FetchMediaFileListApi = (params: FetchMediaFileListApiParams) => Promise<any>;
|
|
|
export type BatchDownloadMediaFileApi = (params: BatchDownloadMediaFileApiParams) => Promise<any>;
|
|
|
export type FetchFileListByFolderApi = (dirId: string, params: FetchFileListByFolderApiParams) => Promise<any>;
|
|
|
-export type FetchFileDetailApi = (fileId: string) => Promise<any>;
|
|
|
+export type FetchFileDetailApi = (workspaceId: string, fileId: string) => Promise<any>;
|
|
|
export type BatchDownloadFileApi = (params: BatchDownloadFileApiParams) => Promise<any>;
|
|
|
export type CreateMapElementApi = (fileId: string) => Promise<any>;
|
|
|
export type DeleteMapElementApi = (fileId: string) => Promise<any>;
|
|
|
@@ -330,8 +330,8 @@ const fetchFileListByFolderApi: FetchFileListByFolderApi = async (dirId, params)
|
|
|
};
|
|
|
|
|
|
// 获取文件详情
|
|
|
-const fetchFileDetailApi: FetchFileDetailApi = async (fileId) => {
|
|
|
- const res = await request.get(`/media/api/v1/files/${getWorkspaceId()}/file/${fileId}`);
|
|
|
+const fetchFileDetailApi: FetchFileDetailApi = async (workspaceId, fileId) => {
|
|
|
+ const res = await request.get(`/media/api/v1/files/${workspaceId}/file/${fileId}`);
|
|
|
return res.data;
|
|
|
};
|
|
|
|