From 00e0dbbf98347b1e47a7e0aedd41baa61f7567ed Mon Sep 17 00:00:00 2001
From: fuyongxin <110568259@qq.com>
Date: Wed, 03 Jun 2026 08:47:03 +0800
Subject: [PATCH] 修改配置nacos,后端gateway端口
---
ruoyi-ui/src/api/system/notice.js | 37 ++++++++++++++++++++++++++++++++++++-
1 files changed, 36 insertions(+), 1 deletions(-)
diff --git a/ruoyi-ui/src/api/system/notice.js b/ruoyi-ui/src/api/system/notice.js
index 737fc16..6f04807 100644
--- a/ruoyi-ui/src/api/system/notice.js
+++ b/ruoyi-ui/src/api/system/notice.js
@@ -41,4 +41,39 @@
url: '/system/notice/' + noticeId,
method: 'delete'
})
-}
\ No newline at end of file
+}
+
+// 首页顶部公告列表(带已读状态)
+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 }
+ })
+}
+
+// 查询公告已读用户列表
+export function listNoticeReadUsers(query) {
+ return request({
+ url: '/system/notice/readUsers/list',
+ method: 'get',
+ params: query
+ })
+}
--
Gitblit v1.9.3