import api from './index.js'

/**
 * 消息相关API接口
 */

// 获取消息列表
export const getMessageList = (params = {}) => {
  return api.get('/message/list', { params })
}

// 获取消息详情
export const getMessageDetail = (id) => {
  return api.get(`/message/${id}`)
}

// 标记消息为已读
export const markMessageAsRead = (id) => {
  return api.post(`/message/read/${id}`)
} 