announcement.js 870 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import request, { postBlob, getBlob, handleImport } from '@/utils/request'
  2. // 获取师傅列表
  3. export function noticeListPageV2(data) {
  4. return request({
  5. url: `/notice/listNotice?moduleId=${data.moduleId}`,
  6. method: 'post',
  7. data
  8. })
  9. }
  10. export function noticePageExport(data, name) {
  11. return postBlob({
  12. url: '/notice/listNotice/export',
  13. data,
  14. name
  15. })
  16. }
  17. export function noticeAdd(data) {
  18. return request({
  19. url: '/notice/add',
  20. method: 'post',
  21. data
  22. })
  23. }
  24. export function noticeUpdate(data) {
  25. return request({
  26. url: '/notice/update',
  27. method: 'post',
  28. data
  29. })
  30. }
  31. export function noticeDel(params) {
  32. return request({
  33. url: '/notice/mark/del',
  34. method: 'post',
  35. params
  36. })
  37. }
  38. export function getNoticeDetail(params) {
  39. return request({
  40. url: '/notice/detailNotice',
  41. method: 'get',
  42. params
  43. })
  44. }