Blame view

apps/home/models/IndexData.js 650 Bytes
weiqingting authored
1 2 3 4
'use strict';

const api = global.yoho.API;
陈轩 authored
5 6 7 8
const getPendingOrderCount = ($uid)=>{
    let options = {
        method: 'web.SpaceOrders.getPendingOrderCount',
        uid: $uid
weiqingting authored
9 10
    };
    return api.get('', options);
陈轩 authored
11 12 13 14 15 16 17
};
const infoNum = ($uid, $udid)=>{
    let options = {
        method: 'app.home.getInfoNum',
        uid: $uid,
        udid: $udid
    };
weiqingting authored
18
    return api.get('', options);
陈轩 authored
19 20 21 22 23 24
};
const notCommentRecordCount = ($uid)=>{
    let options = {
        method: 'show.notCommentRecordCount',
        uid: $uid
    };
weiqingting authored
25
    return api.get('', options);
陈轩 authored
26
};
weiqingting authored
27 28 29 30 31

module.exports = {
    getPendingOrderCount,
    infoNum,
    notCommentRecordCount
陈轩 authored
32
};