import request from "@/utils/request"

/** 兽医我的预约列表 */
export function listVetMyAppointment(query) {
  return request({
    url: "/diseaseTreatment/myAppointment/vet/list",
    method: "get",
    params: query
  })
}

/** 兽医预约详情 */
export function getVetMyAppointment(id) {
  return request({
    url: "/diseaseTreatment/myAppointment/vet/" + id,
    method: "get"
  })
}

/** 确认接诊 */
export function confirmVetMyAppointment(id) {
  return request({
    url: "/diseaseTreatment/myAppointment/vet/confirm/" + id,
    method: "post"
  })
}

/** 拒绝接诊 */
export function rejectVetMyAppointment(id, data) {
  return request({
    url: "/diseaseTreatment/myAppointment/vet/reject/" + id,
    method: "post",
    data
  })
}

/** 完成接诊（已确认 → 已完成） */
export function completeVetMyAppointment(id) {
  return request({
    url: "/diseaseTreatment/myAppointment/vet/complete/" + id,
    method: "post"
  })
}
