ctx-shop-api.js 512 Bytes
/**
 * Created by TaoHuang on 2016/6/28.
 */
'use strict';

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

    shopBannerAsync(shopId) {
        return this.get({data: {
            method: 'app.shop.banner',
            shop_id: shopId
        }});
    }

    queryShopsByBrandId(sid, bid) {
        return this.get({data: {
            method: 'app.product.queryShopsInfoById',
            brand_id: bid,
            shop_id: sid
        }});
    }
};