zouyu
2025-03-18 bc44c8e3c9d85691ce3fa73ef1300a6fae46e365
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import request from '@/utils/request'
 
// 查询公告列表
export function listNotice(query) {
  return request({
    url: '/system/notice/list',
    method: 'get',
    params: query
  })
}
 
// 查询公告详细
export function getNotice(noticeId) {
  return request({
    url: '/system/notice/' + noticeId,
    method: 'get'
  })
}
 
// 新增公告
export function addNotice(data) {
  return request({
    url: '/system/notice',
    method: 'post',
    data: data
  })
}
 
// 修改公告
export function updateNotice(data) {
  return request({
    url: '/system/notice',
    method: 'put',
    data: data
  })
}
 
// 删除公告
export function delNotice(noticeId) {
  return request({
    url: '/system/notice/' + noticeId,
    method: 'delete'
  })
}
 
// 消息通知-滚动分页查询
export function pageNotice(query) {
  return request({
    url: '/informationNotification/page',
    method: 'get',
    params: query
  })
}
 
// 消息通知-更新消息状态(拒绝、接收)
export function updateMessageStatus(query) {
  return request({
    url: '/informationNotification/updateMessageStatus',
    method: 'put',
    data: query
  })
}
 
// 消息通知-标记所有信息为已读/删除所有已读消息
export function informationReadOrDelete(isMarkAllInformationRead) {
  return request({
    url: '/informationNotification/informationReadOrDelete/' + isMarkAllInformationRead,
    method: 'put',
  })
}
 
// 消息通知-删除数据
export function deleteDataBasedOnId(query) {
  return request({
    url: '/informationNotification/deleteDataBasedOnId',
    method: 'delete',
    params: query
  })
}
 
// 消息通知-查询是否存在未读数据
export function checkForUnreadData() {
  return request({
    url: '/informationNotification/checkForUnreadData',
    method: 'get',
  })
}
 
// 消息通知-点击详情触发修改状态为已读
export function triggerModificationStatusToRead(id) {
  return request({
    url: '/informationNotification/triggerModificationStatusToRead/' + id,
    method: 'put',
  })
}
 
// 消息通知-获取首页四种消息数量
export function getNumberFourTypesMessagesHomePage() {
  return request({
    url: '/informationNotification/getNumberFourTypesMessagesHomePage',
    method: 'get',
  })
}