From 25975d7ec42b1691512ff6f29041bd3bd1a4a1e3 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期一, 12 一月 2026 14:32:57 +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