cart-api.js
472 Bytes
/**
* Created by TaoHuang on 2016/9/28.
*/
'use strict';
module.exports = class extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
}
goodsCount(uid, shoppingKey) {
let params = {
method: 'app.Shopping.count'
};
if (uid) {
params.uid = uid;
}
if (shoppingKey) {
params.shopping_key = shoppingKey;
}
return this.get({data: params});
}
};