cart-api.js
391 Bytes
/**
* Created by TaoHuang on 2016/9/28.
*/
'use strict';
const api = global.yoho.API;
const goodsCount = (uid, shoppingKey) => {
let params = {
method: 'app.Shopping.count'
};
if (uid) {
params.uid = uid;
}
if (shoppingKey) {
params.shopping_key = shoppingKey;
}
return api.get('', params);
};
module.exports = {
goodsCount
};