spring
14 小时以前 ebe3507d1382bb124c1fb895a5e27f7063fdffdc
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
45
import request from "@/utils/request";
 
// 查询消息通知列表
export function listMessage(query) {
  return request({
    url: "/system/notice/list",
    method: "get",
    params: query,
  });
}
 
// 查询未读消息数量
export function getUnreadCount(consigneeId) {
  return request({
    url: "/system/notice/getCount",
    method: "get",
    params: { consigneeId },
  });
}
 
// 标记消息为已读
export function markAsRead(noticeId, status) {
  return request({
    url: "/system/notice",
    method: "put",
    data: { noticeId, status },
  });
}
 
// 一键标记所有消息为已读
export function markAllAsRead() {
  return request({
    url: "/system/notice/markAllAsRead",
    method: "post",
  });
}
 
// 确认消息
export function confirmMessage(noticeId, status) {
  return request({
    url: "/system/notice",
    method: "put",
    data: { noticeId, status },
  });
}