|
|
@@ -117,6 +117,16 @@ public class ExamController {
|
|
|
return Response.buildSuccess(examService.getExamsByCurrentStudent(user.getId(), pageSize, pageNum, state));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @ApiOperation("获得学生参加的考试列表")
|
|
|
+ @ApiParam()
|
|
|
+ @GetMapping("/student/examList")
|
|
|
+ @Authorized()
|
|
|
+ public Response getExamListByCurrentStudent(@ApiIgnore User user){
|
|
|
+ return Response.buildSuccess(examService.getExamLIstByCurrentStudent(user.getId()));
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation("获得老师/HR创建的考试")
|
|
|
@GetMapping("/teacher/exams")
|
|
|
@Authorized(roles = {UserRole.TEACHER, UserRole.HR})
|