brand-api.js 488 Bytes
'use strict';

const library = '../../../library';
const API = require(`${library}/api`).API;
const sign = require(`${library}/sign`);

const api = new API();

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

};

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