matchSmallGroupSchedule.js 566 B

1234567891011121314151617
  1. 'use strict';
  2. const meta = require('./config/.matchSmallGroupSchedule.js');
  3. const Controller = require('egg').Controller;
  4. const { CrudController } = require('naf-framework-mongoose-free/lib/controller');
  5. //
  6. class MatchSmallGroupScheduleController extends Controller {
  7. constructor(ctx) {
  8. super(ctx);
  9. this.service = this.ctx.service.matchSmallGroupSchedule;
  10. }
  11. async saveAll() {
  12. const data = await this.service.saveAll(this.ctx.request.body);
  13. this.ctx.ok({ data });
  14. }
  15. }
  16. module.exports = CrudController(MatchSmallGroupScheduleController, meta);