redenvelopes-api.js
520 Bytes
'use strict';
const api = global.yoho.API;
/**
* 获取红包列表
* $uid 用户ID
*/
const getRedenvelopes = uid=>{
let options = {
method: 'app.yoho.redpacketList',
uid: uid
};
return api.get('', options);
};
/**
* 获取红包列表
* uid 用户ID
*/
const getRedenvelopesTotal = uid=>{
let options = {
method: 'app.yoho.redpacketInfo',
uid: uid
};
return api.get('', options);
};
module.exports = {
getRedenvelopes,
getRedenvelopesTotal
};