You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
duomendian/api/lottery.js

35 lines
522 B

import request from "@/utils/request.js";
/**
* 获取抽奖详情信息
*
*/
export function getLotteryData(type) {
return request.get(`v2/lottery/info/${type}`);
}
/**
* 参与抽奖
*
*/
export function startLottery(data) {
return request.post(`v2/lottery`, data);
}
/**
* 领奖
*
*/
export function receiveLottery(data) {
return request.post(`v2/lottery/receive`, data);
}
/**
* 获取中奖记录
*
*/
export function getLotteryList(data) {
return request.get(`v2/lottery/record`, data);
}