brand-api.js 514 Bytes
/**
 * Created by TaoHuang on 2016/6/14.
 */

'use strict';

const api = global.yoho.API;
const config = global.yoho.config;

const getBannerInfoAsync = bid => {
    return api.get('', {
        method: 'web.brand.banner',
        brand_id: bid
    }, config.apiCache);

};

const getBrandLogoByDomainAsync = domain => {
    return api.get('', {
        domain: domain,
        method: 'web.brand.byDomain'
    }, config.apiCache);
};

module.exports = {
    getBannerInfoAsync,
    getBrandLogoByDomainAsync
};