|
@@ -7,12 +7,15 @@ const { CrudController } = require('naf-framework-mongoose/lib/controller');
|
|
|
|
|
|
// 信息表管理
|
|
|
class LevelController extends Controller {
|
|
|
-
|
|
|
constructor(ctx) {
|
|
|
super(ctx);
|
|
|
this.service = this.ctx.service.level;
|
|
|
}
|
|
|
|
|
|
+ async index() {
|
|
|
+ const res = await this.service.query(this.ctx.query);
|
|
|
+ this.ctx.ok({ ...res });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
module.exports = CrudController(LevelController, meta);
|