| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- import { http } from '@/utils/http/axios';
- export interface GetReplayNvrBody {
- cameraId: number;
- endTime: string;
- startTime: string;
- }
- /** 回放nvr */
- export const getReplayNvr = (data: GetReplayNvrBody) => {
- return http.request({
- url: '/nvrOption/replayNvr',
- method: 'post',
- data,
- });
- };
- export interface GetRecordByTimeBody {
- algoList: number[];
- cameraId: number;
- endTime: string;
- startTime: string;
- }
- /** 根据时间段获取违规记录点 */
- export const getRecordByTime = (data: GetRecordByTimeBody): Promise<ViolationRecordItem[]> => {
- return http.request({
- url: '/minio/getRecordByTime',
- method: 'post',
- data,
- });
- };
- export interface ViolationRecordItem {
- algoId: number;
- algoName: string;
- cameraId: number;
- id: number;
- time: string;
- }
- /** 获取nvr下载链接 */
- export const getNvrDownloadUrl = (data: GetReplayNvrBody) => {
- return http.request({
- url: '/nvrOption/download',
- method: 'post',
- data,
- timeout: 100000000000,
- });
- };
|