import request from '@/config/axios'


// 相机 API
export const CameraControlApi = {
  // 查询相机分页
  cameraControl: async (urlStr: string,data) => {
    return await request.post({ url: urlStr, data })
  },
  
  // //查询相机列表
  // getCameraList:  () => {
  //   return  request.get({ url: `/logistics/camera/list` })
  // },
  // // 查询相机详情
  // getCamera: async (id: number) => {
  //   return await request.get({ url: `/logistics/camera/get?id=` + id })
  // },

  // // 新增相机
  // createCamera: async (data: CameraVO) => {
  //   return await request.post({ url: `/logistics/camera/create`, data })
  // },

  // // 修改相机
  // updateCamera: async (data: CameraVO) => {
  //   return await request.put({ url: `/logistics/camera/update`, data })
  // },

  // // 删除相机
  // deleteCamera: async (id: number) => {
  //   return await request.delete({ url: `/logistics/camera/delete?id=` + id })
  // },

  // // 导出相机 Excel
  // exportCamera: async (params) => {
  //   return await request.download({ url: `/logistics/camera/export-excel`, params })
  // },
}
