redenvelopes-api.js 645 Bytes
'use strict';

module.exports = class extends global.yoho.BaseModel {
    constructor(ctx) {
        super(ctx);
    }

    /**
     * 获取红包列表
     * $uid 用户ID
     */
    getRedenvelopes(uid) {

        let data = {
            method: 'app.yoho.redpacketList',
            uid: uid
        };

        return this.get({
            data: data
        });
    }

    /**
     * 获取红包列表
     * uid 用户ID
     */
    getRedenvelopesTotal(uid) {

        let data = {
            method: 'app.yoho.redpacketInfo',
            uid: uid
        };

        return this.get({
            data: data
        });
    }

};