1234567891011121314151617181920212223242526272829303132 |
- import request from '@/sheep/request';
- const PrizeApi = {
- // 根据活动id获取奖品
- getPrizeByLotteryId: (lotteryId) => {
- return request({
- url: '/promotion/luck-prize/get',
- method: 'GET',
- params: { lotteryId },
- });
- },
- // 根据商品id获取抽奖活动
- getPrizeByGoodsId: (spuId) => {
- return request({
- url: '/promotion/luck-lottery/get/by-spu-id',
- method: 'GET',
- params: { spuId },
- });
- },
- // 据活动id获取用户抽奖次数
- getNumByLotteryId: (lotteryId) => {
- return request({
- url: '/promotion/luck-lottery/get/user-num',
- method: 'GET',
- params: { lotteryId },
- });
- },
- };
- export default PrizeApi;
|