wangwei преди 7 години
родител
ревизия
6965007260
променени са 1 файла, в които са добавени 4 реда и са изтрити 3 реда
  1. 4 3
      exam-work-api/src/main/java/cn/com/qmth/examcloud/service/examwork/api/ExamApi.java

+ 4 - 3
exam-work-api/src/main/java/cn/com/qmth/examcloud/service/examwork/api/ExamApi.java

@@ -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);