import request from '@/utils/request'

// 查询 消息列表
export function getMsg() {
  return request({
    url: '/doctor/msg/getMsg',
    method: 'get'
  })
}

export function getMsgList(query) {
  return request({
    url: '/doctor/msg/getMsgList',
    method: 'get',
    params: query
  })
}


export function getMsgCount() {
  return request({
    url: '/doctor/msg/getMsgCount',
    method: 'get',
  })
}


export function setRead(data) {
  return request({
    url: '/doctor/msg/setRead',
    method: 'post',
    data: data
  })
}
export function setAllRead() {
  return request({
    url: '/doctor/msg/setAllRead',
    method: 'post'
  })
}