| | |
| | | payload?:any |
| | | startTime?:string |
| | | endTime?:string |
| | | name?:string |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | // Get Media Files |
| | | export const getMediaFiles = async function (wid: string, pagination: IPage): Promise<IWorkspaceResponse<any>> { |
| | | export const getMediaFiles = async function (wid: string, pagination: IPage,params:MediaQueryParam): Promise<IWorkspaceResponse<any>> { |
| | | const url = `${HTTP_PREFIX}/files/${wid}/files?page=${pagination.page}&page_size=${pagination.page_size}` |
| | | const result = await request.get(url) |
| | | const result = await request.get(url,{params}) |
| | | return result.data |
| | | } |
| | | |
| | | //修改文件名 |
| | | export const updateMediaFile = async function (wid: string,params:any): Promise<IWorkspaceResponse<any>> { |
| | | const url = `${HTTP_PREFIX}/files/${wid}/updateFile?` |
| | | const result = await request.get(url,{params}) |
| | | return result.data |
| | | } |
| | | |
| | | |
| | | // Download Media File |
| | | export const downloadMediaFile = async function (workspaceId: string, fileId: string): Promise<any> { |
| | | const url = `${HTTP_PREFIX}/files/${workspaceId}/file/${fileId}/url` |