recommend.js 418 Bytes
/**
 * 推荐商品(店铺推荐|为您优选|最近浏览)controller
 * @author: wsl<shuiling.wang@yoho.cn>
 * @date: 2016/11/21
 */
'use strict';

const _ = require('lodash');
const recommend = require('../models/recommend');

const getRecommendProduct = (req, res, next) => {
    recommend.getRecommendProduct().then((result) => {
        res.json(result);
    });
};

module.exports = {
    getRecommendProduct
};