1234567891011121314151617 |
- 'use strict';
- const meta = require('./config/.matchSmallGroupSchedule.js');
- const Controller = require('egg').Controller;
- const { CrudController } = require('naf-framework-mongoose-free/lib/controller');
- //
- class MatchSmallGroupScheduleController extends Controller {
- constructor(ctx) {
- super(ctx);
- this.service = this.ctx.service.matchSmallGroupSchedule;
- }
- async saveAll() {
- const data = await this.service.saveAll(this.ctx.request.body);
- this.ctx.ok({ data });
- }
- }
- module.exports = CrudController(MatchSmallGroupScheduleController, meta);
|