init
This commit is contained in:
30
src/api/notice/notice.js
Normal file
30
src/api/notice/notice.js
Normal 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"
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user