notice.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <<<<<<< HEAD
  2. import request from '@/utils/request'
  3. // 查询公告列表
  4. export function listNotice(query) {
  5. return request({
  6. url: '/system/notice/list',
  7. method: 'get',
  8. params: query
  9. })
  10. }
  11. // 查询公告详细
  12. export function getNotice(noticeId) {
  13. return request({
  14. url: '/system/notice/' + noticeId,
  15. method: 'get'
  16. })
  17. }
  18. // 新增公告
  19. export function addNotice(data) {
  20. return request({
  21. url: '/system/notice',
  22. method: 'post',
  23. data: data
  24. })
  25. }
  26. // 修改公告
  27. export function updateNotice(data) {
  28. return request({
  29. url: '/system/notice',
  30. method: 'put',
  31. data: data
  32. })
  33. }
  34. // 删除公告
  35. export function delNotice(noticeId) {
  36. return request({
  37. url: '/system/notice/' + noticeId,
  38. method: 'delete'
  39. })
  40. =======
  41. import request from '@/utils/request'
  42. // 查询公告列表
  43. export function listNotice(query) {
  44. return request({
  45. url: '/system/notice/list',
  46. method: 'get',
  47. params: query
  48. })
  49. }
  50. // 查询公告详细
  51. export function getNotice(noticeId) {
  52. return request({
  53. url: '/system/notice/' + noticeId,
  54. method: 'get'
  55. })
  56. }
  57. // 新增公告
  58. export function addNotice(data) {
  59. return request({
  60. url: '/system/notice',
  61. method: 'post',
  62. data: data
  63. })
  64. }
  65. // 修改公告
  66. export function updateNotice(data) {
  67. return request({
  68. url: '/system/notice',
  69. method: 'put',
  70. data: data
  71. })
  72. }
  73. // 删除公告
  74. export function delNotice(noticeId) {
  75. return request({
  76. url: '/system/notice/' + noticeId,
  77. method: 'delete'
  78. })
  79. >>>>>>> ec6eeb00ce64eb587a455406167d302dc3e59216
  80. }