import request from '@/utils/request'

// 查询风机类型检查分值列表
export function listFanInspectionScore(query) {
  return request({
    url: '/gxt/fanInspectionScore/list',
    method: 'get',
    params: query
  })
}

// 查询风机类型检查分值详细
export function getFanInspectionScore(id) {
  return request({
    url: '/gxt/fanInspectionScore/' + id,
    method: 'get'
  })
}

// 新增风机类型检查分值
export function addFanInspectionScore(data) {
  return request({
    url: '/gxt/fanInspectionScore',
    method: 'post',
    data: data
  })
}

// 修改风机类型检查分值
export function updateFanInspectionScore(data) {
  return request({
    url: '/gxt/fanInspectionScore',
    method: 'put',
    data: data
  })
}

// 删除风机类型检查分值
export function delFanInspectionScore(id) {
  return request({
    url: '/gxt/fanInspectionScore/' + id,
    method: 'delete'
  })
}

// 查询所有风机类型列表（去重）
export function listFanTypes() {
  return request({
    url: '/gxt/fanInspectionScore/fanTypes',
    method: 'get'
  })
}

// 根据风机类型查询检查类型列表
export function listInspectionTypesByFanType(fanType) {
  return request({
    url: '/gxt/fanInspectionScore/inspectionTypes/' + fanType,
    method: 'get'
  })
}

// 获取导出字段
export function getExportFields() {
  return request({
    url: '/gxt/fanInspectionScore/exportFields',
    method: 'get'
  })
}