Newer
Older
KaiFengPC / src / api / cameraResource / cameraGroupInfo.js
@zhangdeliang zhangdeliang on 23 May 2 KB 初始化项目
import request from '@/utils/request'

// 查询自定义视频分组-分组分页
export function pagecameraGroupInfo (query) {
  return request({
    url: '/business/cameraGroupInfo/page',
    method: 'get',
    params: query
  })
}

// 查询自定义视频分组-分组列表
export function listcameraGroupInfo (query) {
  return request({
    url: '/business/cameraGroupInfo/list',
    method: 'get',
    params: query
  })
}

// 查询自定义视频分组-分组详细
export function getcameraGroupInfo (id) {
  return request({
    url: '/business/cameraGroupInfo/' + id,
    method: 'get'
  })
}

// 新增自定义视频分组-分组
export function addcameraGroupInfo (data) {
  return request({
    url: '/business/cameraGroupInfo/add',
    method: 'post',
    data: data
  })
}

// 修改自定义视频分组-分组
export function updatecameraGroupInfo (data) {
  return request({
    url: '/business/cameraGroupInfo/edit',
    method: 'put',
    data: data
  })
}

// 删除自定义视频分组-分组
export function delcameraGroupInfo (id) {
  return request({
    url: '/business/cameraInfo/batchRemove' + id,
    method: 'delete'
  })
}


// 需要删除的人员id 删除时传id 回显时用userId
export const batchRemove = (params) => {
  return request({
    url: `/business/cameraInfo/batchRemove`,
    method: "post",
    data: params
  });
};

//  部门id+用户信息数组
export const batchSave = (params) => {
  return request({
    url: `/business/cameraInfo/batchSave`,
    method: "post",
    data: params
  });
};

//  分组列表
export const cameraGroupInfopage = (params) => {
  return request({
    url: `/business/cameraGroupInfo/page`,
    method: "post",
    data: params
  });
};


// 全部 摄像头
export const cameraInfolist = () => {
  return request({
    url: `/business/cameraInfo/list`,
    method: "get",
  });
};


// 已绑定 摄像头列表
export const getBoundData = (params) => {
  return request({
    url: `/business/cameraInfo/getBoundData`,
    method: "post",
    params: params
  });
};

// 查询未绑定的所有
export const getNotBoundData = (params) => {
  return request({
    url: `/business/cameraInfo/getNotBoundData`,
    method: "post",
    params: params
  });
};