spring
昨天 3960a146999f82053bec81333095b0637f7738b2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import request from "@/utils/request";
 
// 查询消息通知列表
export function listMessage(query) {
  return request({
    url: "/system/notice/list",
    method: "get",
    params: query,
  });
}
 
// 查询未读消息数量
export function getUnreadCount() {
  return request({
    url: "/system/notice/getCount",
    method: "get",
  });
}
 
// 标记消息为已读
export function markAsRead(noticeId) {
  return request({
    url: "/system/notice/markAsRead",
    method: "post",
    data: { noticeId },
  });
}
 
// 一键标记所有消息为已读
export function markAllAsRead() {
  return request({
    url: "/system/notice/markAllAsRead",
    method: "post",
  });
}
 
// 确认消息
export function confirmMessage(noticeId, status) {
  return request({
    url: "/system/notice/confirm",
    method: "post",
    data: { noticeId, status },
  });
}