import request from '@/utils/request'

// 查询predict列表
export function listPredict(query) {
  return request({
    url: '/predict/predict/list',
    method: 'get',
    params: query
  })
}

// 查询predict详细
export function getPredict(id) {
  return request({
    url: '/predict/predict/' + id,
    method: 'get'
  })
}

// 新增predict
export function addPredict(data) {
  return request({
    url: '/predict/predict',
    method: 'post',
    data: data
  })
}

// 修改predict
export function updatePredict(data) {
  return request({
    url: '/predict/predict',
    method: 'put',
    data: data
  })
}

// 删除predict
export function delPredict(id) {
  return request({
    url: '/predict/predict/' + id,
    method: 'delete'
  })
}
