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

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

const api = new API();

const fake = require('./fake');

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

    return Promise.resolve(fake.fakeBrandBanner);
};

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

    return Promise.resolve(fake.fakeBrandDomain);
};