import request from "@/utils/request"

/** 机构我的预约列表 */
export function listOrgMyAppointment(query) {
  return request({
    url: "/diseaseTreatment/myAppointment/org/list",
    method: "get",
    params: query
  })
}

/** 机构预约详情 */
export function getOrgMyAppointment(id) {
  return request({
    url: "/diseaseTreatment/myAppointment/org/" + id,
    method: "get"
  })
}

/** 完成接诊（已预约 → 已完成） */
export function completeOrgMyAppointment(id) {
  return request({
    url: "/diseaseTreatment/myAppointment/org/complete/" + id,
    method: "post"
  })
}
