Newer
Older
xc-business-system / src / api / equipment / monitor / radio.ts
dutingting on 28 Sep 2023 1 KB 监测设备、无线电库
/**
 * 无线电库
 */
import request from '../../index'
import type { IListQuery } from '@/views/equipement/monitor/radio/radio-interface'
const prefix = 'equipment/test/monitorRadioLibrary'
// 列表查询
export function getMonitorRadioList(data: IListQuery) {
  return request({
    url: `${prefix}/listPage?offset=${data.offset}&limit=${data.limit}`,
    method: 'post',
    data,
  })
}

// 导出
export function exportMonitorRadioList(data: IListQuery) {
  return request({
    url: `${prefix}/listExport`,
    method: 'post',
    data,
    responseType: 'blob',
  })
}

// 新建
export function addMonitorRadioList(data: object) {
  return request({
    url: `${prefix}/save`,
    method: 'post',
    data,
  })
}

// 编辑
export function updateMonitorRadioList(data: object) {
  return request({
    url: `${prefix}/update`,
    method: 'post',
    data,
  })
}

// 获取详情信息
export function getInfo(data: { id: string }) {
  return request({
    url: `${prefix}/detail`,
    method: 'post',
    data,
  })
}

// 删除--草稿箱
export function batchDelete(data: { ids: string[] }) {
  return request({
    url: `${prefix}/batchDelete`,
    method: 'post',
    data,
  })
}