Blame view

apps/product/models/detail-hotarea-api.js 432 Bytes
htoooth authored
1 2 3
/**
 * Created by TaoHuang on 2016/6/13.
 */
htoooth authored
4
const config = global.yoho.config;
htoooth authored
5
htoooth authored
6 7 8 9 10 11 12 13 14 15 16 17 18
module.exports = class extends global.yoho.BaseModel {
    constructor(ctx) {
        super(ctx);
    }

    /**
     * 获取商品的热区
     */
    indexAsync(pid) {
        let data = {
            method: 'web.productCollocation.list',
            product_id: pid
        };
htoooth authored
19
htoooth authored
20
        return this.get({data, param: config.apiCache });
htoooth authored
21
    }
htoooth authored
22
};