wms-antdvue/.svn/pristine/e2/e2a829f59f27bae37e904f5a29ce995a92f2f0a0.svn-base
2024-11-07 16:33:03 +08:00

79 lines
1.3 KiB
Plaintext

import { http } from '@/utils/http/axios';
/**
* @description: 公告列表
*/
export function getNoticeList(params?) {
return http.request({
url: '/admin/notice/page',
method: 'GET',
params,
});
}
/**
* 获取全部通知公告列表
* @param params 参数
* @returns 返回结果
*/
export function getNoticeAllList(params?) {
return http.request({
url: '/admin/notice/list',
method: 'GET',
params,
});
}
/**
* @description: 根据ID获取详情
*/
export function getNoticeDetail(id) {
return http.request({
url: '/admin/notice/detail/' + id,
method: 'get',
});
}
/**
* @description: 添加公告
*/
export function noticeAdd(data: any) {
return http.request({
url: '/admin/notice/add',
method: 'POST',
data,
});
}
/**
* @description: 更新公告
*/
export function noticeUpdate(data: any) {
return http.request({
url: '/admin/notice/update',
method: 'PUT',
data,
});
}
/**
* @description: 删除公告
*/
export function noticeDelete(id) {
return http.request({
url: '/admin/notice/delete/' + id,
method: 'DELETE',
});
}
/**
* @description: 批量删除公告
*/
export function noticeBatchDelete(data: any) {
return http.request({
url: '/admin/notice/batchDelete',
method: 'DELETE',
data,
});
}