import request from '@/utils/request'

// 查询工位终端配置列表
export function listStationConf(query) {
  return request({
    url: '/sc/stationConf/list',
    method: 'get',
    params: query
  })
}

// 查询IP
export function getIpv4() {
  return request({
    url: '/sc/stationConf/getIpv4',
    method: 'get',
  })
}

// 查询工位终端配置详细
export function getStationConf(id) {
  return request({
    url: '/sc/stationConf/' + id,
    method: 'get'
  })
}

// 新增工位终端配置
export function addStationConf(data) {
  return request({
    url: '/sc/stationConf',
    method: 'post',
    data: data
  })
}

// 修改工位终端配置
export function updateStationConf(data) {
  return request({
    url: '/sc/stationConf',
    method: 'put',
    data: data
  })
}

// 删除工位终端配置
export function delStationConf(id) {
  return request({
    url: '/sc/stationConf/' + id,
    method: 'delete'
  })
}