소스 검색

抽奖接口文件

DESKTOP-O04BTUJ\muzen 3 년 전
부모
커밋
fc6d079f51
1개의 변경된 파일28개의 추가작업 그리고 0개의 파일을 삭제
  1. 28 0
      src/api/lottery.js

+ 28 - 0
src/api/lottery.js

@@ -0,0 +1,28 @@
+import request from '@/utils/request'
+
+// 抽奖页面信息
+export function page(data) {
+  return request({
+    url: `/point/lottery/lotteryPage`,
+    method: 'get',
+    data
+  })
+}
+
+// 抽奖结果
+export function result(data){
+  return request({
+    url: `/point/lottery/getLotteryResult`,
+    method: 'get',
+    data
+  })
+}
+
+// 领奖
+export function receive(data){
+  return request({
+    url: `/point/lottery/doLottery`,
+    method: 'post',
+    data
+  })
+}