|
@@ -222,8 +222,9 @@ public class ExamApi extends ControllerSupport {
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "查询课程组", notes = "查询课程组")
|
|
|
- @GetMapping("/exam/queryAllCourseGroups/{examId}")
|
|
|
- public ResponseEntity<?> queryAllCourseGroups(@PathVariable Long examId) {
|
|
|
+ @GetMapping("/exam/allCourseGroups/{examId}/{curPage}/{pageSize}")
|
|
|
+ public ResponseEntity<?> queryAllCourseGroups(@PathVariable Long examId, @PathVariable Integer curPage,
|
|
|
+ @PathVariable Integer pageSize) {
|
|
|
|
|
|
List<CourseGroup> groupList = courseGroupRepo.findByExamId(examId);
|
|
|
|
|
@@ -252,7 +253,7 @@ public class ExamApi extends ControllerSupport {
|
|
|
return new ResponseEntity<Object>(HttpStatus.OK);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "添加课程组", notes = "添加课程组")
|
|
|
+ @ApiOperation(value = "删除课程组", notes = "添加课程组")
|
|
|
@DeleteMapping("/exam/courseGroup/{id}")
|
|
|
public ResponseEntity<?> CourseGroup(@PathVariable Long id, HttpServletRequest request) {
|
|
|
courseGroupRepo.delete(id);
|