45 lines
832 B
JavaScript
Raw Normal View History

2019-10-08 09:14:38 +08:00
import request from '@/utils/request'
// 查询公告列表
export function listNotice(query) {
return request({
2021-01-13 09:39:54 +08:00
url: '/system/notice/page',
2019-10-08 09:14:38 +08:00
method: 'get',
params: query
})
}
// 查询公告详细
export function getNotice(noticeId) {
return request({
2021-01-13 09:39:54 +08:00
url: '/system/notice/get?id=' + noticeId,
2019-10-08 09:14:38 +08:00
method: 'get'
})
}
// 新增公告
export function addNotice(data) {
return request({
2021-01-13 09:39:54 +08:00
url: '/system/notice/create',
2019-10-08 09:14:38 +08:00
method: 'post',
data: data
})
}
// 修改公告
export function updateNotice(data) {
return request({
2021-01-13 09:39:54 +08:00
url: '/system/notice/update',
2021-03-14 22:46:39 +08:00
method: 'put',
2019-10-08 09:14:38 +08:00
data: data
})
}
// 删除公告
export function delNotice(noticeId) {
return request({
2021-01-13 09:39:54 +08:00
url: '/system/notice/delete?id=' + noticeId,
2021-03-14 22:46:39 +08:00
method: 'delete'
2019-10-08 09:14:38 +08:00
})
2021-01-13 09:39:54 +08:00
}