提交 | 用户 | 时间
|
673547
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface CameraVO { |
|
4 |
id: undefined, |
|
5 |
nvrId: string, |
|
6 |
type: number, |
|
7 |
code: undefined, |
|
8 |
channel: undefined, |
|
9 |
location: undefined, |
|
10 |
remark: undefined |
|
11 |
} |
|
12 |
|
|
13 |
// 查询列表 |
|
14 |
export const getCameraPage = (params: PageParam) => { |
|
15 |
return request.get({ url: '/data/video/camera/page', params }) |
|
16 |
} |
|
17 |
|
|
18 |
// 获得 |
|
19 |
export const getCamera = (id: number) => { |
|
20 |
return request.get({ url: '/data/video/camera/get?id=' + id }) |
|
21 |
} |
|
22 |
|
|
23 |
// 查询应用列表 |
|
24 |
export const getCameraList = () => { |
|
25 |
return request.get({ url: '/data/video/camera/list' }) |
|
26 |
} |
|
27 |
|
|
28 |
// 新增 |
|
29 |
export const createCamera = (data: CameraVO) => { |
|
30 |
return request.post({ url: '/data/video/camera/create', data }) |
|
31 |
} |
|
32 |
|
|
33 |
// 修改 |
|
34 |
export const updateCamera = (data: CameraVO) => { |
|
35 |
return request.put({ url: '/data/video/camera/update', data }) |
|
36 |
} |
|
37 |
|
|
38 |
// 删除 |
|
39 |
export const deleteCamera = (id: number) => { |
|
40 |
return request.delete({ url: '/data/video/camera/delete?id=' + id }) |
|
41 |
} |
|
42 |
|
|
43 |
// 导出 |
|
44 |
export const exportCamera = (params: CameraVO) => { |
|
45 |
return request.download({ url: '/data/video/camera/export-excel', params }) |
|
46 |
} |