detail-comment-api.js 670 Bytes
/**
 * Created by TaoHuang on 2016/6/13.
 */

'use strict';

const api = global.yoho.API;

/**
 * 商品详情页的评论列表
 *
 * @param pid 商品productId
 * @param page 分页
 * @param size 每页大小
 *
 * @returns {Promise}
 * @see http://git.yoho.cn/yoho-documents/api-interfaces/blob/master/sns/show/show_productShareOrderList.md
 */
const getShareOrderListAsync = (pid, page, size, filterId) => {
    filterId = filterId || 7;

    return api.get('', {
        method: 'show.productShareOrderList',
        productId: pid,
        page: page,
        limit: size,
        filterId: filterId
    });
};



module.exports = {
    getShareOrderListAsync
};