12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- // +----------------------------------------------------------------------
- // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
- // +----------------------------------------------------------------------
- // | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
- // +----------------------------------------------------------------------
- // | Author: CRMEB Team <admin@crmeb.com>
- // +----------------------------------------------------------------------
- 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);
- }
|