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

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

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

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

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

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