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

/**
 * 获取首页信息
 * @returns
 */
export const fetchHomeInfo = () => api.get('/c/user/index');

export const fetchCanEatIndex = () => api.get('/c/eat/index');

export const fetchCanEatJoin = (data) => api.post('/c/eat/join', data);
export const fetchHomeJSON = (type = 'home_V1') => api.get('/c/front/content', { type });

export const fetchGameActConfigJSON = () => api.get('/c/front/content', { type: 'gameActConfig' });

export const fetchUserClickActivity = (data) => api.post('/c/user/clickActivity', data);
