import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/record/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/record',
    method: 'post',
    data: obj
  })
}


export function delObj(id) {
  return request({
    url: '/record/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/record',
    method: 'put',
    data: obj
  })

}
