import { request } from '@/api/_service'

const BASE = 'scada_manage/workshop/point/'

export function getWorkshopPointAll (data) {
  return request({ url: BASE + 'all', method: 'get', params: { method: 'scada_manage_workshop_point_all', platform: 'background', ...data } })
}
export function getWorkshopPointList (data) {
  return request({ url: BASE + 'list', method: 'get', params: { method: 'scada_manage_workshop_point_list', platform: 'background', ...data } })
}
export function createWorkshopPoint (data) {
  return request({ url: BASE + 'create', method: 'post', data: { method: 'scada_manage_workshop_point_create', platform: 'background', ...data } })
}
export function editWorkshopPoint (data) {
  return request({ url: BASE + 'edit', method: 'put', data: { method: 'scada_manage_workshop_point_edit', platform: 'background', ...data } })
}
export function deleteWorkshopPoint (data) {
  return request({ url: BASE + 'delete', method: 'delete', data: { method: 'scada_manage_workshop_point_delete', platform: 'background', ...data } })
}
export function importExcel (data) {
  return request({ url: BASE + 'import', method: 'post', data: { method: 'scada_manage_workshop_point_delete', platform: 'background', ...data } })
}
export function getWorkshopNodeAll (data) {
  return request({ url: BASE + 'node_all', method: 'get', data: { method: 'scada_manage_workshop_point_node_all', platform: 'background', ...data } })
}
