import {request} from '@sensoro/core'; export interface FetchDownloadVideoParams { sn: string; startTime?: number; endTime?: number; name?: string; devicePlatType?: number; captureTime?: number; channelId?: string; } /** * 下载指定设备的历史录像 * @param data */ export async function fetchDownloadVideo(data: FetchDownloadVideoParams) { return request.post(`/camera/common/static/v1/video/live.m3u8/${data.sn}/hls/download`, { data, timeout: 200000 }); }