cerconfirm.js 511 B

12345678910111213141516171819202122
  1. 'use strict';
  2. const _ = require('lodash');
  3. const Controller = require('egg').Controller;
  4. const { CrudController } = require('naf-framework-mongoose/lib/controller');
  5. // 寝室管理
  6. class CerconfirmController extends Controller {
  7. constructor(ctx) {
  8. super(ctx);
  9. this.service = this.ctx.service.cerconfirm;
  10. }
  11. //
  12. async index() {
  13. const res = await this.service.getStudentList(this.ctx.query);
  14. this.ctx.ok({ data: res });
  15. }
  16. }
  17. module.exports = CrudController(CerconfirmController, {});