src/api/data/dev/camera/index.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/api/data/video/camera/index.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/api/data/video/nvr/index.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/api/data/dev/camera/index.ts
文件已删除 src/api/data/video/camera/index.ts
对比新文件 @@ -0,0 +1,46 @@ import request from '@/config/axios' export interface CameraVO { id: undefined, nvrId: string, type: number, code: undefined, channel: undefined, location: undefined, remark: undefined } // 查询列表 export const getCameraPage = (params: PageParam) => { return request.get({ url: '/data/video/camera/page', params }) } // 获得 export const getCamera = (id: number) => { return request.get({ url: '/data/video/camera/get?id=' + id }) } // 查询应用列表 export const getCameraList = () => { return request.get({ url: '/data/video/camera/list' }) } // 新增 export const createCamera = (data: CameraVO) => { return request.post({ url: '/data/video/camera/create', data }) } // 修改 export const updateCamera = (data: CameraVO) => { return request.put({ url: '/data/video/camera/update', data }) } // 删除 export const deleteCamera = (id: number) => { return request.delete({ url: '/data/video/camera/delete?id=' + id }) } // 导出 export const exportCamera = (params: CameraVO) => { return request.download({ url: '/data/video/camera/export-excel', params }) } src/api/data/video/nvr/index.ts
文件名从 src/api/data/dev/nvr/index.ts 修改 @@ -16,35 +16,35 @@ // 查询列表 export const getNvrPage = (params: PageParam) => { return request.get({ url: '/data/dev/nvr/page', params }) return request.get({ url: '/data/video/nvr/page', params }) } // 获得 export const getNvr = (id: number) => { return request.get({ url: '/data/dev/nvr/get?id=' + id }) return request.get({ url: '/data/video/nvr/get?id=' + id }) } // 查询应用列表 export const getNvrList = () => { return request.get({ url: '/data/dev/nvr/list' }) return request.get({ url: '/data/video/nvr/list' }) } // 新增 export const createNvr = (data: NvrVO) => { return request.post({ url: '/data/dev/nvr/create', data }) return request.post({ url: '/data/video/nvr/create', data }) } // 修改 export const updateNvr = (data: NvrVO) => { return request.put({ url: '/data/dev/nvr/update', data }) return request.put({ url: '/data/video/nvr/update', data }) } // 删除 export const deleteNvr = (id: number) => { return request.delete({ url: '/data/dev/nvr/delete?id=' + id }) return request.delete({ url: '/data/video/nvr/delete?id=' + id }) } // 导出 export const exportNvr = (params: NvrVO) => { return request.download({ url: '/data/dev/nvr/export-excel', params }) return request.download({ url: '/data/video/nvr/export-excel', params }) }