module.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // 组件
  2. import request from '@/utils/request'
  3. //获取组件列表
  4. export const getComponentList = (data) => {
  5. return request({
  6. url: '/public/getComponentList',
  7. method: 'post',
  8. data
  9. })
  10. }
  11. //新增组件
  12. export const addComponent = (data) => {
  13. return request({
  14. url: '/public/addComponent',
  15. method: 'post',
  16. data
  17. })
  18. }
  19. //删除组件
  20. export const delComponent = (data) => {
  21. return request({
  22. url: '/public/delComponent',
  23. method: 'post',
  24. data
  25. })
  26. }
  27. //编辑组件
  28. export const updateComponent = (data) => {
  29. return request({
  30. url: '/public/updateComponent',
  31. method: 'post',
  32. data
  33. })
  34. }
  35. //获取组件详情
  36. export const getComponentInfo = (data) => {
  37. return request({
  38. url: '/public/getComponentInfo',
  39. method: 'post',
  40. data
  41. })
  42. }
  43. // -------------自助建站-*-静态资源管理-----fr------start
  44. //获取静态资源列表
  45. export const getStaticResourceList = (params) => {
  46. return request({
  47. url: '/website/getStaticResourceList',
  48. method: 'get',
  49. params
  50. })
  51. }
  52. //添加静态资源
  53. export const addStaticResource = (data) => {
  54. return request({
  55. url: '/website/addStaticResource',
  56. method: 'post',
  57. data
  58. })
  59. }
  60. //删除静态资源
  61. export const delStaticResource = (data) => {
  62. return request({
  63. url: '/website/delStaticResource',
  64. method: 'post',
  65. data
  66. })
  67. }
  68. //修改静态资源
  69. export const upStaticResource = (data) => {
  70. return request({
  71. url: '/website/upStaticResource',
  72. method: 'post',
  73. data
  74. })
  75. }
  76. // -------------自助建站-*-静态资源管理-----fr------end