/** * 系统通知 API * 此代码由AI生成 */ import request from '@/utils/request' /** * 获取我的通知列表 * @param {Object} query 查询参数 */ export function listMyNotice(query) { return request({ url: '/system/notice/myList', method: 'GET', params: query }) } /** * 标记消息为已读 * @param {number|string} id 消息ID */ export function readNotice(id) { return request({ url: `/system/notice/read/${id}`, method: 'PUT' }) } /** * 标记所有消息为已读 */ export function readAllNotice() { return request({ url: '/system/notice/readAll', method: 'PUT' }) }