guang-api.js
435 Bytes
const {PAGE_SIZE, CUSTOM_HEADER} = require('./vars');
module.exports = class extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
}
async getList(page = 1) {
return this.get({
api: global.yoho.ServiceAPI,
url: '/guang/api/v2/article/getList',
data: {
page, limit: PAGE_SIZE
},
param: CUSTOM_HEADER
});
}
};