detail.js
435 Bytes
class detailModel extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
}
getMagazineInfo(params) {
return this.get({data: {
method: 'app.eBook.queryEBookByEId',
e_id: params[0]
}}).then((data) => {
if (data.code === 200) {
return data.data || {};
}
return {};
});
}
}
module.exports = detailModel;