notice.js 628 B

123456789101112131415161718192021222324252627282930313233343536
  1. import http from '@/http/api.js'
  2. // 获取通知公告列表
  3. export const getList = (params) => {
  4. return http.request({
  5. url: '/api/blade-desk/notice/list',
  6. method: 'GET',
  7. params
  8. })
  9. }
  10. export const remove = (ids) => {
  11. return http.request({
  12. url: '/api/blade-desk/notice/remove',
  13. method: 'post',
  14. params: {
  15. ids,
  16. }
  17. })
  18. }
  19. export const add = (row) => {
  20. return http.request({
  21. url: '/api/blade-desk/notice/submit',
  22. method: 'post',
  23. data: row
  24. })
  25. }
  26. export const update = (row) => {
  27. return http.request({
  28. url: '/api/blade-desk/notice/submit',
  29. method: 'post',
  30. data: row
  31. })
  32. }