redpac.js 538 Bytes
/**
 * Created by qiujun on 2018/10/9.
 */

const service = global.yoho.ServiceAPI;

class RedpacModel extends global.yoho.BaseModel {
    constructor(ctx) {
        super(ctx);
    }

    /**
     * 领取红包
     * @param uid
     * @param actSource
     * @param redpacToken
     */
    getRedpac(uid, actSource, redpacToken) {
        return this.get({
            url: '',
            method: 'app.redpac.addRedpac',
            uid: uid,
            actSource: actSource,
            redpacToken: redpacToken
        });
    }
}