import axios from '@/utils/request'

// 查询游客预约明细列表
export function listReservationVisitor(query) {
  return axios.get('/reservationVisitor/list',{
    params: {
      ...query
    }
  })
}

// 查询全部游客预约明细列表
export function listAllReservationVisitor(query) {
  return axios.get('/reservationVisitor/listAll', {
    params: {
      ...query
    }
  })
}

// 查询游客预约明细详细
export function getReservationVisitor(id) {
  return axios.get('/reservationVisitor/info/' + id)
}

// 新增游客预约明细
export function addReservationVisitor(data) {
  return axios.post('/reservationVisitor/add', {
    ...data
  })
}

// 修改游客预约明细
export function updateReservationVisitor(data) {
  return axios.put('/reservationVisitor', data)
}

// 删除游客预约明细
export function delReservationVisitor(id) {
  return axios.delete('/reservationVisitor/' + id)
}
