diy.js 683 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import request from '@/sheep/request';
  2. const DiyApi = {
  3. getUsedDiyTemplate: () => {
  4. return request({
  5. url: '/promotion/diy-template/used',
  6. method: 'GET',
  7. custom: {
  8. showError: false,
  9. showLoading: false,
  10. },
  11. });
  12. },
  13. getDiyTemplate: (id) => {
  14. return request({
  15. url: '/promotion/diy-template/get',
  16. method: 'GET',
  17. params: {
  18. id
  19. },
  20. custom: {
  21. showError: false,
  22. showLoading: false,
  23. },
  24. });
  25. },
  26. getDiyPage: (id) => {
  27. return request({
  28. url: '/promotion/diy-page/get',
  29. method: 'GET',
  30. params: {
  31. id
  32. }
  33. });
  34. },
  35. };
  36. export default DiyApi;