import request from "@/utils/request"

/** 接诊会话列表 */
export function listVetConsultSessions(query) {
  return request({
    url: "/diseaseTreatment/onlineConsult/vet/session/list",
    method: "get",
    params: query
  })
}

/** 会话历史消息 */
export function listVetConsultMessages(sessionId, query) {
  return request({
    url: "/diseaseTreatment/onlineConsult/vet/session/" + sessionId + "/messages",
    method: "get",
    params: query
  })
}

/** 兽医发送消息 */
export function sendVetConsultMessage(sessionId, data) {
  return request({
    url: "/diseaseTreatment/onlineConsult/vet/session/" + sessionId + "/message",
    method: "post",
    data
  })
}
