Newer
Older
KaiFengPC / src / api / cameraResource / cameraResource.js
@zhangdeliang zhangdeliang on 20 May 1 KB 项目初始化
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'
  })
}