brand-api.js
411 Bytes
/**
* Created by TaoHuang on 2016/6/14.
*/
'use strict';
const config = global.yoho.config;
module.exports = class extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
}
getBannerInfoAsync(bid) {
return this.get({data: {
method: 'web.brand.banner',
brand_id: bid
}, params: {
cache: config.apiCache
}});
}
};