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

const BASE = 'scada_manage/workshop/config/'

export function getWorkshopConfigAll (data) {
  return request({ url: BASE + 'all', method: 'get', params: { method: 'scada_manage_workshop_config_all', platform: 'background', ...data } })
}
export function getWorkshopConfigList (data) {
  return request({ url: BASE + 'list', method: 'get', params: { method: 'scada_manage_workshop_config_list', platform: 'background', ...data } })
}
export function createWorkshopConfig (data) {
  return request({ url: BASE + 'create', method: 'post', data: { method: 'scada_manage_workshop_config_create', platform: 'background', ...data } })
}
export function editWorkshopConfig (data) {
  return request({ url: BASE + 'edit', method: 'put', data: { method: 'scada_manage_workshop_config_edit', platform: 'background', ...data } })
}
export function deleteWorkshopConfig (data) {
  return request({ url: BASE + 'delete', method: 'delete', data: { method: 'scada_manage_workshop_config_delete', platform: 'background', ...data } })
}
