2024-02-29 12:41:52 +08:00
|
|
|
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'
|
|
|
|
})
|
2024-04-24 13:16:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
// 导航面板 消息通知
|
|
|
|
export function navbarNoticelist(query) {
|
|
|
|
return request({
|
|
|
|
url: '/system/notice/navbarNoticelist',
|
|
|
|
method: 'get',
|
|
|
|
params: query
|
|
|
|
})
|
|
|
|
}
|
2024-04-25 13:24:18 +08:00
|
|
|
|
|
|
|
// 导航面板 消息通知 获取详细信息
|
|
|
|
export function getNavbarNotice(noticeId) {
|
|
|
|
return request({
|
|
|
|
url: '/system/notice/navbarNotice/' + noticeId,
|
|
|
|
method: 'get'
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-04-26 11:04:05 +08:00
|
|
|
// 获取对应消息对象的 人员
|
|
|
|
export function listNoticeEventUser(query) {
|
|
|
|
return request({
|
|
|
|
url: '/system/notice/listNoticeEventUser',
|
|
|
|
method: 'get',
|
|
|
|
params: query
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-04-26 13:35:44 +08:00
|
|
|
// 保存对应消息对象的 人员
|
|
|
|
export function saveNoticeEventUser(data) {
|
|
|
|
return request({
|
|
|
|
url: '/system/notice/saveNoticeEventUser',
|
|
|
|
method: 'post',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除对应消息对象的 人员
|
|
|
|
export function delNoticeEventUser(data) {
|
|
|
|
return request({
|
|
|
|
url: '/system/notice/delNoticeEventUser',
|
|
|
|
method: 'post',
|
|
|
|
data: data
|
|
|
|
})
|
|
|
|
}
|