RuoYi
2026-03-22 0017cc88620501d55cd8bf11c802ad435525e138
ruoyi-ui/src/api/system/notice.js
@@ -42,3 +42,29 @@
    method: 'delete'
  })
}
// 首页顶部公告列表(带已读状态)
export function listNoticeTop() {
  return request({
    url: '/system/notice/listTop',
    method: 'get'
  })
}
// 标记公告已读
export function markNoticeRead(noticeId) {
  return request({
    url: '/system/notice/markRead',
    method: 'post',
    params: { noticeId }
  })
}
// 批量标记已读
export function markNoticeReadAll(ids) {
  return request({
    url: '/system/notice/markReadAll',
    method: 'post',
    params: { ids }
  })
}