import requestModule from '../request.js'
const {api} = requestModule

/**
 * 获取915活动首页信息
 * @returns
 */
export const getAct915Home = () => api.post('/c/activity/use_invite_915/invitation/home')

/**
 * 邀请助力
 * @returns
 */
export const invitationAssist = (inviterUserId, unionId) => api.post('/c/activity/use_invite_915/invitation/assist', { invitationCode: inviterUserId, wxUnionId: unionId})

/**
 * 获取抽奖信息
 * @returns
 */
export const getAct915LotteryInfo = () => api.get('/c/activity/turntable_lottery_915/home')

/**
 * 抽奖
 * @returns
 */
export const getAct915LotteryDraw = () => api.post('/c/activity/turntable_lottery_915/lottery/draw')

export const fetchAct915JSON = () => api.get('/c/front/content', {type: 'act915',version: '1'})

export const fetchAct915LotteryJSON = () => api.get('/c/front/content', {type: 'act915Lottery',version: '1'})
