Newer
Older
KaiFengPC / src / api / cameraResource / cameraResource.js
@鲁yixuan 鲁yixuan on 19 Aug 1 KB updata
  1. import request from '@/utils/request';
  2.  
  3. // 搜索摄像头基础信息分页
  4. export function pagecameraResource(query) {
  5. return request({
  6. url: '/business/cameraInfo/page',
  7. method: 'get',
  8. params: query,
  9. });
  10. }
  11.  
  12. // 搜索摄像头基础信息列表
  13. export function listcameraResource(query) {
  14. return request({
  15. url: '/business/cameraResource/list',
  16. method: 'get',
  17. params: query,
  18. });
  19. }
  20.  
  21. // 搜索摄像头基础信息详细
  22. export function getcameraResource(id) {
  23. return request({
  24. url: '/business/cameraInfo/' + id,
  25. method: 'get',
  26. });
  27. }
  28.  
  29. // 新增摄像头基础信息
  30. export function addcameraResource(data) {
  31. return request({
  32. url: '/business/cameraInfo/add',
  33. method: 'post',
  34. data: data,
  35. });
  36. }
  37.  
  38. // 修改摄像头基础信息
  39. export function updatecameraResource(data) {
  40. return request({
  41. url: '/business/cameraInfo/edit',
  42. method: 'put',
  43. data: data,
  44. });
  45. }
  46.  
  47. // 删除摄像头基础信息
  48. export function delcameraResource(id) {
  49. return request({
  50. url: '/business/cameraResource/' + id,
  51. method: 'delete',
  52. });
  53. }
  54.  
  55. // 同步按钮接口
  56. export function cameraInfotb() {
  57. return request({
  58. url: '/business/cameraInfo/sync',
  59. method: 'get',
  60. });
  61. }