newArrive-api.js
877 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
52
53
54
55
56
/**
* 新品到着相关接口
* @author: yyq<yanqing.yang@yoho.cn>
* @date: 2016/7/17
*/
'use strict';
const api = global.yoho.API;
/**
* 为您推荐店铺API
*
*/
const recShop = (params) => {
let finalParams = {
method: 'app.newproduct.recshop'
};
Object.assign(finalParams, params);
return api.get('', finalParams);
};
/**
* 为您推荐品牌API
*
*/
const recBrand = (params) => {
let finalParams = {
method: 'app.newproduct.recbrand'
};
Object.assign(finalParams, params);
return api.get('', finalParams);
};
/**
* 最新上架API
*
*/
const recList = (params) => {
let finalParams = {
method: 'app.newproduct.reclist',
limit: 60
};
Object.assign(finalParams, params);
return api.get('', finalParams);
};
module.exports = {
recShop,
recBrand,
recList
};