123456789101112131415161718192021222324 |
- 'use strict';
- // 弃用
- // const _ = require('lodash');
- const Controller = require('egg').Controller;
- // 房间表管理
- class PersonroomtalkController extends Controller {
- constructor(ctx) {
- super(ctx);
- this.service = this.ctx.service.personroomtalk;
- }
- async delete() {
- const res = await this.service.delete(this.ctx.params);
- this.ctx.ok({ res });
- }
- async countroom() {
- const res = await this.service.countroom();
- this.ctx.ok({ total: res });
- }
- }
- module.exports = PersonroomtalkController;
|