seckill.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. "use strict";
  2. const sheep_request_index = require("../../request/index.js");
  3. const SeckillApi = {
  4. // 获得秒杀时间段列表
  5. getSeckillConfigList: () => {
  6. return sheep_request_index.request({ url: "promotion/seckill-config/list", method: "GET" });
  7. },
  8. // 获得当前秒杀活动
  9. getNowSeckillActivity: () => {
  10. return sheep_request_index.request({ url: "promotion/seckill-activity/get-now", method: "GET" });
  11. },
  12. // 获得秒杀活动分页
  13. getSeckillActivityPage: (params) => {
  14. return sheep_request_index.request({ url: "promotion/seckill-activity/page", method: "GET", params });
  15. },
  16. /**
  17. * 获得秒杀活动明细
  18. * @param {number} id 秒杀活动编号
  19. * @return {*}
  20. */
  21. getSeckillActivity: (id) => {
  22. return sheep_request_index.request({
  23. url: "promotion/seckill-activity/get-detail",
  24. method: "GET",
  25. params: { id }
  26. });
  27. }
  28. };
  29. const __vite_glob_0_29 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  30. __proto__: null,
  31. default: SeckillApi
  32. }, Symbol.toStringTag, { value: "Module" }));
  33. exports.SeckillApi = SeckillApi;
  34. exports.__vite_glob_0_29 = __vite_glob_0_29;