123456789101112131415161718192021222324 |
- 'use strict';
- const _ = require('lodash');
- const Controller = require('egg').Controller;
- const { CrudController } = require('naf-framework-mongoose/lib/controller');
- // 学校端管理
- class SchoolctrlController extends Controller {
- constructor(ctx) {
- super(ctx);
- this.service = this.ctx.service.schoolctrl;
- }
- // 学生名单上报
- async stuimport() {
- const res = await this.service.stuimport(this.ctx.request.body);
- this.ctx.ok({ msg: 'created', data: res });
- }
- }
- module.exports = CrudController(SchoolctrlController);
|