diy.js 999 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. const __vite_glob_0_27 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  38. __proto__: null,
  39. default: DiyApi
  40. }, Symbol.toStringTag, { value: "Module" }));
  41. exports.DiyApi = DiyApi;
  42. exports.__vite_glob_0_27 = __vite_glob_0_27;