plusstar.js 504 Bytes
'use strict';
const api = global.yoho.API;
const camelCase = global.yoho.camelCase;
const _ = require('lodash');

/**
 * 获取分享页面列表数据
 * @param {[int]} uid 用户id
 * @param {[int]} activityId 活动id
 * @return {[array]}
 */
const index = (params) => {
    params = params || {};

    return api.get('', Object.assign({
        method: 'wap.invite.index'
    }, params)).then((result) => {
        return Object.assign(camelCase(result));
    });
};

module.exports = {
    index
};