Blame view

apps/product/models/detail-comment-api.js 768 Bytes
htoooth authored
1 2 3 4
/**
 * Created by TaoHuang on 2016/6/13.
 */
htoooth authored
5 6
'use strict';
htoooth authored
7 8
module.exports = class extends global.yoho.BaseModel {
    constructor(ctx) {
htoooth authored
9
        super(ctx);
htoooth authored
10
    }
htoooth authored
11
htoooth authored
12 13 14 15 16 17 18 19 20 21 22 23
    /**
     * 商品详情页的评论列表
     *
     * @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;
htoooth authored
24
htoooth authored
25 26 27 28 29 30 31 32
        return this.get({data: {
            method: 'show.productShareOrderList',
            productId: pid,
            page: page,
            limit: size,
            filterId: filterId
        }});
    }
htoooth authored
33
};