Files
jwl-manage-web/src/api/system/notice.js

45 lines
763 B
JavaScript
Raw Normal View History

2023-03-21 00:53:28 +08:00
import request from '@/utils/request';
2023-02-15 09:17:05 +08:00
// 查询公告列表
export function listNotice(query) {
return request({
url: '/system/notice/list',
method: 'get',
params: query
2023-03-21 00:53:28 +08:00
});
2023-02-15 09:17:05 +08:00
}
// 查询公告详细
export function getNotice(noticeId) {
return request({
url: '/system/notice/' + noticeId,
method: 'get'
2023-03-21 00:53:28 +08:00
});
2023-02-15 09:17:05 +08:00
}
// 新增公告
export function addNotice(data) {
return request({
url: '/system/notice',
method: 'post',
data: data
2023-03-21 00:53:28 +08:00
});
2023-02-15 09:17:05 +08:00
}
// 修改公告
export function updateNotice(data) {
return request({
url: '/system/notice',
method: 'put',
data: data
2023-03-21 00:53:28 +08:00
});
2023-02-15 09:17:05 +08:00
}
// 删除公告
export function delNotice(noticeId) {
return request({
url: '/system/notice/' + noticeId,
method: 'delete'
2023-03-21 00:53:28 +08:00
});
}