/**
 * Created by TaoHuang on 2016/6/13.
 */

'use strict';

module.exports = class extends global.yoho.BaseModel {
    constructor(ctx) {
        super(ctx);
    }

    /**
     * 商品详情页的评论列表
     *
     * @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
     */
    getShareOrderListAsync(pid, page, size, filterId) {
        filterId = filterId || 7;

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