• This project
    • Loading...
  • Sign in

fe / yohobuywap-node · Files

Go to a project

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Pipelines 0
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Members
  • Labels
  • Wiki
  • Forks
  • Network
  • Create a new issue
  • yohobuywap-node
  • apps
  • cart
  • models
  • count.js
  • cartCount
    4228e1bc
    by zhangxiaoru
    2016-10-09 11:47:01 +0800  
    Browse Directory »
count.js 300 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
'use strict';

const api = global.yoho.API;

const cartCount = (uid, shoppingKey) => {

    return api.get('', {
        method: 'app.Shopping.count',
        uid: uid,
        shopping_key: shoppingKey
    }).then((result) => {
        return result;
    });
};

module.exports = {
    cartCount
};