index-data.js 692 Bytes
/**
 * @author: weiqingting<qingting.wei@yoho.cn>
 */
'use strict';

const api = global.yoho.API;

const getPendingOrderCount = uid=>{
    let options = {
        method: 'web.SpaceOrders.getPendingOrderCount',
        uid: uid
    };
    return api.get('', options);
};
const infoNum = (uid, udid)=>{
    let options = {
        method: 'app.home.getInfoNum',
        uid: uid,
        udid: udid
    };
    return api.get('', options);
};
const notCommentRecordCount = uid=>{
    let options = {
        method: 'show.notCommentRecordCount',
        uid: uid
    };
    return api.get('', options);
};

module.exports = {
    getPendingOrderCount,
    infoNum,
    notCommentRecordCount
};