index.js 610 Bytes
class indexModel extends global.yoho.BaseModel {
    constructor(ctx) {
        super(ctx);
    }

    /**
     * 通过杂志id和userId获取杂志信息
     * @param uid
     * @param eid
     * @returns {*}
     */
    getMagazineInfo(uid, eid, token) {
        return this.get({
            data: {
                method: 'app.eBook.queryLinkByEIdAndUserId',
                uid,
                user_id: uid.toString(),
                e_id: eid,
                token,
                type: 1 // 传type的情况下才能拿到杂志url
            }
        });
    }
}

module.exports = indexModel;