import request from "@/utils/request"

/** 专家我的预约列表 */
export function listExpertMyAppointment(query) {
  return request({
    url: "/techService/myAppointment/expert/list",
    method: "get",
    params: query
  })
}

/** 专家预约详情 */
export function getExpertMyAppointment(id) {
  return request({
    url: "/techService/myAppointment/expert/" + id,
    method: "get"
  })
}

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

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

/** 评价列表（仅已完成） */
export function listExpertMyAppointmentReviews(id) {
  return request({
    url: "/techService/myAppointment/expert/reviewList/" + id,
    method: "get"
  })
}

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