@@ -25,6 +25,12 @@ class TeacherController extends Controller {
this.ctx.ok({ data: res });
}
+ // 教师评分上报
+ async teaimport() {
+ const res = await this.service.teaimport(this.ctx.request.body);
+ this.ctx.ok({ msg: 'created', data: res });
+ }
+
module.exports = CrudController(TeacherController, meta);
@@ -46,6 +46,7 @@ module.exports = app => {
'/api/train/teacher/status',
controller.teacher.status
);
+ router.post('/api/train/teacher/teaimport', controller.teacher.teaimport);
// 作业表配置路由
router.resources('task', '/api/train/task', controller.task); // index、create、show、destroy