| | |
| | | import request, { IPage, IWorkspaceResponse } from '/@/api/http/request' |
| | | const HTTP_PREFIX = '/media/api/v1' |
| | | |
| | | |
| | | export interface MediaQueryParam{ |
| | | subFileType?:any |
| | | payload?:any |
| | |
| | | endTime?:string |
| | | name?:string |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // Get Media Files |
| | | export const getMediaFiles = async function (wid: string, pagination: IPage,params:MediaQueryParam): Promise<IWorkspaceResponse<any>> { |
| | |
| | | const result = await request.get(url,{params}) |
| | | return result.data |
| | | } |
| | | |
| | | |
| | | // Download Media File |
| | | export const downloadMediaFile = async function (workspaceId: string, fileId: string): Promise<any> { |