diy.js 776 B

12345678910111213141516171819202122232425262728293031323334353637
  1. "use strict";
  2. const sheep_request_index = require("../../request/index.js");
  3. const DiyApi = {
  4. getUsedDiyTemplate: () => {
  5. return sheep_request_index.request({
  6. url: "/promotion/diy-template/used",
  7. method: "GET",
  8. custom: {
  9. showError: false,
  10. showLoading: false
  11. }
  12. });
  13. },
  14. getDiyTemplate: (id) => {
  15. return sheep_request_index.request({
  16. url: "/promotion/diy-template/get",
  17. method: "GET",
  18. params: {
  19. id
  20. },
  21. custom: {
  22. showError: false,
  23. showLoading: false
  24. }
  25. });
  26. },
  27. getDiyPage: (id) => {
  28. return sheep_request_index.request({
  29. url: "/promotion/diy-page/get",
  30. method: "GET",
  31. params: {
  32. id
  33. }
  34. });
  35. }
  36. };
  37. exports.DiyApi = DiyApi;