This commit is contained in:
clay
2024-03-04 19:13:43 +08:00
commit e44edd71c0
350 changed files with 52288 additions and 0 deletions

30
src/api/notice/notice.js Normal file
View File

@@ -0,0 +1,30 @@
import request from '@/utils/request.js'
export const getNoticeList = (params) => {
return request({
url: '/notice/notice',
method: 'get',
params
})
}
export const getNoticeDetail = (noticeId) => {
return request({
url: '/notice/notice/'+noticeId,
method: "get"
});
};
export const addNotice = (data) => {
return request({
url: '/notice/notice',
method: 'post',
data
})
}
export const deleteNotice = (noticeId) => {
return request({
url: `/notice/notice/${noticeId}`,
method: "delete"
});
};