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

'use strict';

const api = global.yoho.API;

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

};

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

module.exports = {
    getBannerInfoAsync,
    getBrandLogoByDomainAsync
};