对比新文件 |
| | |
| | | import request from '@/utils/request' |
| | | |
| | | // 鏌ヨ鍏憡鍒楄〃 |
| | | export function listNotice(query) { |
| | | return request({ |
| | | url: '/system/notice/list', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
| | | |
| | | // 鏌ヨ鍏憡璇︾粏 |
| | | export function getNotice(noticeId) { |
| | | return request({ |
| | | url: '/system/notice/' + noticeId, |
| | | method: 'get' |
| | | }) |
| | | } |
| | | |
| | | // 鏂板鍏憡 |
| | | export function addNotice(data) { |
| | | return request({ |
| | | url: '/system/notice', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 淇敼鍏憡 |
| | | export function updateNotice(data) { |
| | | return request({ |
| | | url: '/system/notice', |
| | | method: 'put', |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 鍒犻櫎鍏憡 |
| | | export function delNotice(noticeId) { |
| | | return request({ |
| | | url: '/system/notice/' + noticeId, |
| | | method: 'delete' |
| | | }) |
| | | } |