Newer
Older
KaiFengPC / src / api / system / notice.js
@鲁yixuan 鲁yixuan on 19 Aug 768 bytes updata
  1. import request from '@/utils/request';
  2.  
  3. // 搜索公告列表
  4. export function listNotice(query) {
  5. return request({
  6. url: '/system/notice/list',
  7. method: 'get',
  8. params: query,
  9. });
  10. }
  11.  
  12. // 搜索公告详细
  13. export function getNotice(noticeId) {
  14. return request({
  15. url: '/system/notice/' + noticeId,
  16. method: 'get',
  17. });
  18. }
  19.  
  20. // 新增公告
  21. export function addNotice(data) {
  22. return request({
  23. url: '/system/notice',
  24. method: 'post',
  25. data: data,
  26. });
  27. }
  28.  
  29. // 修改公告
  30. export function updateNotice(data) {
  31. return request({
  32. url: '/system/notice',
  33. method: 'put',
  34. data: data,
  35. });
  36. }
  37.  
  38. // 删除公告
  39. export function delNotice(noticeId) {
  40. return request({
  41. url: '/system/notice/' + noticeId,
  42. method: 'delete',
  43. });
  44. }