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',
|
})
|
}
|