| | |
| | | @RequiredArgsConstructor |
| | | @Api(value = "考试", tags = "考试管理") |
| | | @RestController |
| | | @RequestMapping("/api/exam") |
| | | @RequestMapping("/api/admin/exam") |
| | | public class ExamController { |
| | | |
| | | private final ExamService examService; |
| | |
| | | public Result list() { |
| | | return examService.all(); |
| | | } |
| | | |
| | | @GetMapping("/mark/paper/{id}") |
| | | @PreAuthorize("hasAuthority('exam:markPaper')") |
| | | @ApiOperation(value = "获取考试结果信息", notes = "获取考试结果信息") |
| | | public Result getMarkResultInfo(@PathVariable("id") Integer id) { |
| | | return examService.getMarkResultInfo(id); |
| | | } |
| | | |
| | | @GetMapping("/mark/paper/{examId}/{userId}") |
| | | @PreAuthorize("hasAuthority('exam:markPaper')") |
| | | @ApiOperation(value = "获取阅卷信息", notes = "获取阅卷信息") |
| | | public Result getMarkPaperInfo(@PathVariable("examId") Integer examId, @PathVariable("userId") Integer userId) { |
| | | return examService.getMarkPaperInfo(examId, userId); |
| | | } |
| | | } |