personroomtalk.js 531 B

123456789101112131415161718192021222324
  1. 'use strict';
  2. // 弃用
  3. // const _ = require('lodash');
  4. const Controller = require('egg').Controller;
  5. // 房间表管理
  6. class PersonroomtalkController extends Controller {
  7. constructor(ctx) {
  8. super(ctx);
  9. this.service = this.ctx.service.personroomtalk;
  10. }
  11. async delete() {
  12. const res = await this.service.delete(this.ctx.params);
  13. this.ctx.ok({ res });
  14. }
  15. async countroom() {
  16. const res = await this.service.countroom();
  17. this.ctx.ok({ total: res });
  18. }
  19. }
  20. module.exports = PersonroomtalkController;