import request from '@/utils/request'

// 查询引擎维护列表
export function listMaintenance(query) {
  return request({
    url: '/ruleEngine/maintenance/list',
    method: 'get',
    params: query
  })
}

// 查询引擎维护详细
export function getMaintenance(id) {
  return request({
    url: '/ruleEngine/maintenance/' + id,
    method: 'get'

  })
}

// 新增引擎维护
export function addMaintenance(data) {
  return request({
    url: '/ruleEngine/maintenance',
    method: 'post',
    data: data
  })
}

// 修改引擎维护
export function updateMaintenance(data) {
  return request({
    url: '/ruleEngine/maintenance/'+data.id,
    method: 'put',
    data: data
  })
}

// 删除引擎维护
export function delMaintenance(id) {
  return request({
    url: '/ruleEngine/maintenance/' + id,
    method: 'delete'
  })
}
