favorite-brand-api.js
492 Bytes
/**
* Created by TaoHuang on 2016/6/14.
*/
'use strict';
const serviceAPI = global.yoho.ServiceAPI;
const isFavoriteAsync = (uid, bid) => {
return serviceAPI.get('shops/service/v1/favorite/getUidBrandFav', {
uid: uid,
brandId: bid
});
};
const changeAsync = (uid, brandId) => {
return serviceAPI.get('guang/service/v2/favorite/toggleBrand', {
uid: uid,
brand_id: brandId
});
};
module.exports = {
isFavoriteAsync,
changeAsync
};