client-api.js
736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* 客服用户端 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
};