lottery.js 522 B

1234567891011121314151617181920212223242526272829303132333435
  1. import request from "@/utils/request.js";
  2. /**
  3. * 获取抽奖详情信息
  4. *
  5. */
  6. export function getLotteryData(type) {
  7. return request.get(`v2/lottery/info/${type}`);
  8. }
  9. /**
  10. * 参与抽奖
  11. *
  12. */
  13. export function startLottery(data) {
  14. return request.post(`v2/lottery`, data);
  15. }
  16. /**
  17. * 领奖
  18. *
  19. */
  20. export function receiveLottery(data) {
  21. return request.post(`v2/lottery/receive`, data);
  22. }
  23. /**
  24. * 获取中奖记录
  25. *
  26. */
  27. export function getLotteryList(data) {
  28. return request.get(`v2/lottery/record`, data);
  29. }