favorite-product-api.js
461 Bytes
/**
* Created by TaoHuang on 2016/6/13.
*/
const library = '../../../library';
const API = require(`${library}/api`).API;
const ServiceAPI = require(`${library}/api`).ServiceAPI;
const sign = require(`${library}/sign`);
const api = new API();
module.exports.getUidProductFavAsync = function (uid, pid) {
return api.get('', sign.apiSign({
method: 'app.favorite.isFavorite',
id: pid,
uid: uid,
type: 'product'
}));
};