提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface NoticeVO { |
|
4 |
id: number | undefined |
|
5 |
title: string |
|
6 |
type: number |
|
7 |
content: string |
|
8 |
status: number |
|
9 |
remark: string |
|
10 |
creator: string |
|
11 |
createTime: Date |
|
12 |
} |
|
13 |
|
|
14 |
// 查询公告列表 |
|
15 |
export const getNoticePage = (params: PageParam) => { |
|
16 |
return request.get({ url: '/system/notice/page', params }) |
|
17 |
} |
|
18 |
|
|
19 |
// 查询公告详情 |
|
20 |
export const getNotice = (id: number) => { |
|
21 |
return request.get({ url: '/system/notice/get?id=' + id }) |
|
22 |
} |
|
23 |
|
|
24 |
// 新增公告 |
|
25 |
export const createNotice = (data: NoticeVO) => { |
|
26 |
return request.post({ url: '/system/notice/create', data }) |
|
27 |
} |
|
28 |
|
|
29 |
// 修改公告 |
|
30 |
export const updateNotice = (data: NoticeVO) => { |
|
31 |
return request.put({ url: '/system/notice/update', data }) |
|
32 |
} |
|
33 |
|
|
34 |
// 删除公告 |
|
35 |
export const deleteNotice = (id: number) => { |
|
36 |
return request.delete({ url: '/system/notice/delete?id=' + id }) |
|
37 |
} |
|
38 |
|
|
39 |
// 推送公告 |
|
40 |
export const pushNotice = (id: number) => { |
|
41 |
return request.post({ url: '/system/notice/push?id=' + id }) |
|
42 |
} |