Newer
Older
robot_dog_patrol_front / src / api / home / device / device.ts
lyg on 22 Aug 951 bytes 场站监测列表
/**
 * 设备管理--设备管理接口
 */
import request from '@/api/index'

// 设备管理基础列表
export function getDeviceListPage(data: any) {
  return request({
    url: `/system/busDevice/listPage?limit=${data.limit}&offset=${data.offset}`,
    method: 'post',
    data,
  })
}
// 删除设备
export function removeDevice(data: any) {
  return request({
    url: '/system/busDevice/batchDelete',
    method: 'post',
    data: {
      ids: data,
    },
  })
}
// 新建设备
export function addDevice(data: any) {
  return request({
    url: '/system/busDevice/add',
    method: 'post',
    data,
  })
}
// 编辑设备
export function editDevice(data: any) {
  return request({
    url: '/system/busDevice/edit',
    method: 'post',
    data,
  })
}

// 导出列表
export function exportDevice(params: any) {
  return request({
    url: '/system/busDevice/batchExport',
    method: 'get',
    params,
    responseType: 'blob',
  })
}