文件名从 exam-admin/src/main/java/com/gkhy/exam/admin/app/AppPaperStudentController.java 修改 |
| | |
| | | package com.gkhy.exam.admin.app; |
| | | package com.gkhy.exam.admin.controller.app; |
| | | |
| | | |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | |
| | | @PreAuthorize("hasAnyAuthority('train:exam:student')") |
| | | @ApiOperation(value = "结束考试") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "body", name = "paperId", dataType = "long", required = true, value = "试卷id"), |
| | | @ApiImplicitParam(paramType = "body", name = "studentId", dataType = "long", required = true, value = "学员id") |
| | | @ApiImplicitParam(paramType = "body", name = "id", dataType = "long", required = true, value = "学员与试卷关系id") |
| | | }) |
| | | @PostMapping(value = { "/endExam" }) |
| | | public CommonResult endExam(ExPaperStudent paperStudent) |
| | | public CommonResult endExam(@RequestBody ExPaperStudent paperStudent) |
| | | { |
| | | paperStudentService.endExam(paperStudent); |
| | | return CommonResult.success(); |