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