12345678910111213141516171819202122 |
- 'use strict';
- const Controller = require('egg').Controller;
- // 教师申请讲课表管理
- class UtilController extends Controller {
- constructor(ctx) {
- super(ctx);
- this.service = this.ctx.service.util;
- }
- async findModel() {
- const data = await this.service.findModel(this.ctx.params);
- this.ctx.ok({ data });
- }
- async utilMethod() {
- await this.service.utilMethod(this.ctx.query, this.ctx.request.body);
- this.ctx.ok();
- }
- }
- module.exports = UtilController;
|