client-api.js 736 Bytes
/**
 * 客服用户端 api
 *
 * @author: liqi <qi.li@yoho.cn>
 * @date: 2016/11/4
 */

'use strict';

let api = new global.yoho.ApiBase('http://192.168.102.18:60101/', {
    name: 'bjServiceApi',
    cache: global.yoho.cache,
    useCache: false
});


let urls = {
    lastTen: 'cs/queryUserLastTenOrdersNgoodsInfo',
    qas: ''
};

/**
 * 用户最近10笔订单
 * @param uid
 * @returns
 */
const getLastTenOrders = (uid, imgSize) => {
    return api.get(urls.lastTen, {
        method: '',
        uid,
        imgSize
    });
};


/**
 * 常见问题
 * @param
 * @returns
 */
const getQas = () => {
    return api.get(urls.qas, {
        method: '',
        uid
    });
};

module.exports = {
    getQas,
    getLastTenOrders
};