提交 | 用户 | 时间
|
30566d
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface NvrVO { |
|
4 |
id: undefined, |
|
5 |
brand: undefined, |
|
6 |
code: undefined, |
|
7 |
name: undefined, |
|
8 |
ip: undefined, |
|
9 |
port: undefined, |
|
10 |
username: undefined, |
|
11 |
password: undefined, |
|
12 |
device: undefined, |
|
13 |
position: undefined, |
|
14 |
remark: undefined |
|
15 |
} |
|
16 |
|
|
17 |
// 查询列表 |
|
18 |
export const getNvrPage = (params: PageParam) => { |
673547
|
19 |
return request.get({ url: '/data/video/nvr/page', params }) |
30566d
|
20 |
} |
H |
21 |
|
|
22 |
// 获得 |
|
23 |
export const getNvr = (id: number) => { |
673547
|
24 |
return request.get({ url: '/data/video/nvr/get?id=' + id }) |
30566d
|
25 |
} |
H |
26 |
|
|
27 |
// 查询应用列表 |
|
28 |
export const getNvrList = () => { |
673547
|
29 |
return request.get({ url: '/data/video/nvr/list' }) |
30566d
|
30 |
} |
H |
31 |
|
|
32 |
// 新增 |
|
33 |
export const createNvr = (data: NvrVO) => { |
673547
|
34 |
return request.post({ url: '/data/video/nvr/create', data }) |
30566d
|
35 |
} |
H |
36 |
|
|
37 |
// 修改 |
|
38 |
export const updateNvr = (data: NvrVO) => { |
673547
|
39 |
return request.put({ url: '/data/video/nvr/update', data }) |
30566d
|
40 |
} |
H |
41 |
|
|
42 |
// 删除 |
|
43 |
export const deleteNvr = (id: number) => { |
673547
|
44 |
return request.delete({ url: '/data/video/nvr/delete?id=' + id }) |
30566d
|
45 |
} |
H |
46 |
|
|
47 |
// 导出 |
|
48 |
export const exportNvr = (params: NvrVO) => { |
673547
|
49 |
return request.download({ url: '/data/video/nvr/export-excel', params }) |
30566d
|
50 |
} |