index.js
548 Bytes
class indexModel extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
}
/**
* 通过杂志id和userId获取杂志信息
* @param uid
* @param eid
* @returns {*}
*/
getMagazineInfo(uid, eid) {
return this.get({
data: {
method: 'app.eBook.queryLinkByEIdAndUserId',
user_id: uid,
e_id: eid,
type: 1 // 传type的情况下才能拿到杂志url
}
});
}
}
module.exports = indexModel;