import request from '@/utils/request'

// 查询锁控机柜-列表
export function getIsLockCabinetPage(query) {
  return request({
    url: '/iscs/cabinet/getIsLockCabinetPage',
    method: 'get',
    params: query
  })
}

// 获取锁控机柜详细信息
export function selectIsLockCabinetById(repairId) {
  return request({
    url: '/iscs/cabinet/selectIsLockCabinetById?cabinetId=' + repairId,
    method: 'get'
  })
}

//新增锁控机柜
export function insertIsLockCabinet(query) {
  return request({
    url: '/iscs/cabinet/insertIsLockCabinet',
    method: 'post',
    data: query
  })
}
//----
// 修改锁控机柜信息
export function updateIsLockCabinet(data) {
  return request({
    url: '/iscs/cabinet/updateIsLockCabinet',
    method: 'post',
    data: data
  })
}

// 删除锁控机柜信息
export function deleteIsLockCabinetByCabinetIds(repairId) {
  return request({
    url: '/iscs/cabinet/deleteIsLockCabinetByCabinetIds?cabinetIds=' + repairId,
    method: 'post'

  })
}
// 锁控机柜测试 发消息 /iscs/cabinet/sendDataToLoto
export function sendDataToLoto(query) {
  return request({
    url: '/iscs/cabinet/sendDataToLoto',
    method: 'get',
    params: query
  })
}
