From 716b64bf299622a3d0dad0d3cc4e1e2e4306bd7f Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 26 八月 2026 15:40:20 +0800
Subject: [PATCH] fix(monitor): 修正操作时间选择器的日期格式

---
 src/api/system/message.js |   25 +++++++++++++++++--------
 1 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/src/api/system/message.js b/src/api/system/message.js
index b046016..e4d278c 100644
--- a/src/api/system/message.js
+++ b/src/api/system/message.js
@@ -10,35 +10,44 @@
 }
 
 // 鏌ヨ鏈娑堟伅鏁伴噺
-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 },
   });
 }
 
 // 涓�閿爣璁版墍鏈夋秷鎭负宸茶
 export function markAllAsRead() {
   return request({
-    url: "/system/notice/markAllAsRead",
+    url: "/system/notice/readAll",
     method: "post",
+  });
+}
+
+// 娓呴櫎褰撳墠鐢ㄦ埛鐨勫叏閮ㄦ秷鎭�
+export function clearAllMessage() {
+  return request({
+    url: "/system/notice/clearAll",
+    method: "delete",
   });
 }
 
 // 纭娑堟伅
 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