chatroom.js 427 B

123456789101112131415161718
  1. 'use strict';
  2. const _ = require('lodash');
  3. const meta = require('./.chatroom.js');
  4. const Controller = require('egg').Controller;
  5. const { CrudController } = require('naf-framework-mongoose/lib/controller');
  6. // 课后答疑房间
  7. class ChatroomController extends Controller {
  8. constructor(ctx) {
  9. super(ctx);
  10. this.service = this.ctx.service.chatroom;
  11. }
  12. }
  13. module.exports = CrudController(ChatroomController, meta);