/**
 * Created by TaoHuang on 2016/6/13.
 */
const config = global.yoho.config;

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

    /**
     * 获取商品的热区
     */
    indexAsync(pid) {
        let data = {
            method: 'web.productCollocation.list',
            product_id: pid
        };

        return this.get({data, param: config.apiCache });
    }
};