wms-antdvue/.svn/pristine/9d/9da002721289632367cdcc38b4cf76a5afa2668b.svn-base
2024-11-07 16:33:03 +08:00

67 lines
1.2 KiB
Plaintext

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