|
@@ -221,7 +221,7 @@ public class ExamApi extends ControllerSupport {
|
|
return new ResponseEntity(HttpStatus.OK);
|
|
return new ResponseEntity(HttpStatus.OK);
|
|
}
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "网考更新考务信息", notes = "网考更新考务信息")
|
|
|
|
|
|
+ @ApiOperation(value = "查询课程组", notes = "查询课程组")
|
|
@GetMapping("/exam/queryAllCourseGroups/{examId}")
|
|
@GetMapping("/exam/queryAllCourseGroups/{examId}")
|
|
public ResponseEntity<?> queryAllCourseGroups(@PathVariable Long examId) {
|
|
public ResponseEntity<?> queryAllCourseGroups(@PathVariable Long examId) {
|
|
|
|
|
|
@@ -243,4 +243,12 @@ public class ExamApi extends ControllerSupport {
|
|
|
|
|
|
return new ResponseEntity<List<CourseGroup>>(groupList, HttpStatus.OK);
|
|
return new ResponseEntity<List<CourseGroup>>(groupList, HttpStatus.OK);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "添加课程组", notes = "添加课程组")
|
|
|
|
+ @PutMapping("/exam/addCourseGroup")
|
|
|
|
+ public ResponseEntity<?> addCourseGroup(@RequestBody CourseGroup courseGroup, HttpServletRequest request) {
|
|
|
|
+
|
|
|
|
+ courseGroupRepo.save(courseGroup);
|
|
|
|
+ return new ResponseEntity<Object>(HttpStatus.OK);
|
|
|
|
+ }
|
|
}
|
|
}
|