Newer
Older
smartwell_front / src / api / home / device / device.ts
/**
 * 设备管理--设备管理接口
 */
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,
  })
}