brand-api.js 530 Bytes
/**
 * @author: jiangfeng<jeff.jiang@yoho.cn>
 */

'use strict';

const api = global.yoho.API;

const BrandApi = {
    getBrandInfo(bid, uid) {
        let params = {
            method: 'app.brand.getBrandIntro',
            brand_id: bid
        };

        if (uid) {
            params.uid = uid;
        }
        return api.get('', params);
    },

    getDomainInfo(domain) {
        return api.get('', {
            domain: domain,
            method: 'web.brand.byDomain'
        });
    }
};

module.exports = BrandApi;