首页新增通知公告消息提醒

This commit is contained in:
RuoYi
2026-03-21 23:57:52 +08:00
parent 1eaf3a6ec7
commit 00ac3e3df6
13 changed files with 676 additions and 5 deletions

View File

@@ -41,4 +41,30 @@ export function delNotice(noticeId) {
url: '/system/notice/' + noticeId,
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 }
})
}