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