From ebe3507d1382bb124c1fb895a5e27f7063fdffdc Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 13 一月 2026 16:19:14 +0800
Subject: [PATCH] fix: 规章制度加一个附件功能
---
src/api/system/message.js | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/src/api/system/message.js b/src/api/system/message.js
index b046016..871d7e8 100644
--- a/src/api/system/message.js
+++ b/src/api/system/message.js
@@ -10,19 +10,20 @@
}
// 鏌ヨ鏈娑堟伅鏁伴噺
-export function getUnreadCount() {
+export function getUnreadCount(consigneeId) {
return request({
url: "/system/notice/getCount",
method: "get",
+ params: { consigneeId },
});
}
// 鏍囪娑堟伅涓哄凡璇�
-export function markAsRead(noticeId) {
+export function markAsRead(noticeId, status) {
return request({
- url: "/system/notice/markAsRead",
- method: "post",
- data: { noticeId },
+ url: "/system/notice",
+ method: "put",
+ data: { noticeId, status },
});
}
@@ -37,8 +38,8 @@
// 纭娑堟伅
export function confirmMessage(noticeId, status) {
return request({
- url: "/system/notice/confirm",
- method: "post",
+ url: "/system/notice",
+ method: "put",
data: { noticeId, status },
});
}
--
Gitblit v1.9.3