| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- import Rs from "@@/services/RequestService"
- class noticeApi {
- tableUrl = "/system/notice/list"
- // exportUrl = "/system/notice/export"
- // 查询公告列表
- listNotice = (query: any) => {
- return Rs.get({
- url: "/system/notice/list",
- params: query,
- loading: false
- })
- }
- // 查询公告详细
- getNotice = (noticeId: string) => {
- return Rs.get({
- url: "/system/notice/" + noticeId
- })
- }
- // 新增公告
- addNotice = (data: any) => {
- return Rs.post({
- url: "/system/notice",
- data
- })
- }
- // 修改公告
- updateNotice = (data: any) => {
- return Rs.put({
- url: "/system/notice",
- data
- })
- }
- // 删除公告
- delNotice = (noticeId: string | string[]) => {
- return Rs.del({
- url: "/system/notice/" + noticeId
- })
- }
- }
- export default noticeApi
|