newArrive-api.js 877 Bytes
/**
 * 新品到着相关接口
 * @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
};