termquest.js 571 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. const _ = require('lodash');
  3. const meta = require('./.termquest.js');
  4. const Controller = require('egg').Controller;
  5. const { CrudController } = require('naf-framework-mongoose/lib/controller');
  6. // 每期可答问卷表管理
  7. class TermquestController extends Controller {
  8. constructor(ctx) {
  9. super(ctx);
  10. this.service = this.ctx.service.termquest;
  11. }
  12. async queryteacher() {
  13. const data = await this.service.queryteacher(this.ctx.request.query);
  14. this.ctx.ok({ data });
  15. }
  16. }
  17. module.exports = CrudController(TermquestController, meta);