Newer
Older
KaiFengPC / src / api / cameraResource / cameraResource.js
@鲁yixuan 鲁yixuan on 19 Aug 1 KB updata
import request from '@/utils/request';

// 搜索摄像头基础信息分页
export function pagecameraResource(query) {
  return request({
    url: '/business/cameraInfo/page',
    method: 'get',
    params: query,
  });
}

// 搜索摄像头基础信息列表
export function listcameraResource(query) {
  return request({
    url: '/business/cameraResource/list',
    method: 'get',
    params: query,
  });
}

// 搜索摄像头基础信息详细
export function getcameraResource(id) {
  return request({
    url: '/business/cameraInfo/' + id,
    method: 'get',
  });
}

// 新增摄像头基础信息
export function addcameraResource(data) {
  return request({
    url: '/business/cameraInfo/add',
    method: 'post',
    data: data,
  });
}

// 修改摄像头基础信息
export function updatecameraResource(data) {
  return request({
    url: '/business/cameraInfo/edit',
    method: 'put',
    data: data,
  });
}

// 删除摄像头基础信息
export function delcameraResource(id) {
  return request({
    url: '/business/cameraResource/' + id,
    method: 'delete',
  });
}

// 同步按钮接口
export function cameraInfotb() {
  return request({
    url: '/business/cameraInfo/sync',
    method: 'get',
  });
}