|
|
@@ -34,119 +34,75 @@ public class TeacherController {
|
|
|
return Result.success(info);
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 创建教学任务
|
|
|
- */
|
|
|
- @Operation(summary = "创建教学任务")
|
|
|
+ @Deprecated
|
|
|
+ @Operation(summary = "创建教学任务", deprecated = true)
|
|
|
@PostMapping("/tasks")
|
|
|
public Result<Long> createTask(@RequestAttribute("userId") Long teacherId,
|
|
|
@RequestBody CreateTeacherTaskDTO dto) {
|
|
|
- // TODO: Implement createTask in TeacherService
|
|
|
- // Long taskId = teacherService.createTask(teacherId, dto);
|
|
|
- // return Result.success(taskId);
|
|
|
- return Result.error("功能开发中");
|
|
|
+ throw new UnsupportedOperationException("教师功能暂未开放:createTask");
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 获取教师任务列表
|
|
|
- */
|
|
|
- @Operation(summary = "获取教师任务列表")
|
|
|
+ @Deprecated
|
|
|
+ @Operation(summary = "获取教师任务列表", deprecated = true)
|
|
|
@PostMapping("/tasks/list")
|
|
|
public Result<List<TaskDTO>> getTaskList(@RequestAttribute("userId") Long teacherId) {
|
|
|
- // TODO: Implement getTaskList in TeacherService
|
|
|
- // List<TaskDTO> tasks = teacherService.getTaskList(teacherId);
|
|
|
- // return Result.success(tasks);
|
|
|
- return Result.success(null);
|
|
|
+ throw new UnsupportedOperationException("教师功能暂未开放:getTaskList");
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 创建班级
|
|
|
- */
|
|
|
- @Operation(summary = "创建班级")
|
|
|
+ @Deprecated
|
|
|
+ @Operation(summary = "创建班级", deprecated = true)
|
|
|
@PostMapping("/classes")
|
|
|
public Result<Long> createClass(@RequestAttribute("userId") Long teacherId,
|
|
|
@RequestBody CreateClassDTO dto) {
|
|
|
- // TODO: Implement createClass in TeacherService
|
|
|
- // Long classId = teacherService.createClass(teacherId, dto);
|
|
|
- // return Result.success(classId);
|
|
|
- return Result.error("功能开发中");
|
|
|
+ throw new UnsupportedOperationException("教师功能暂未开放:createClass");
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 获取教师班级列表
|
|
|
- */
|
|
|
- @Operation(summary = "获取教师班级列表")
|
|
|
+ @Deprecated
|
|
|
+ @Operation(summary = "获取教师班级列表", deprecated = true)
|
|
|
@PostMapping("/classes/list")
|
|
|
public Result<List<ClassInfoDTO>> getClassList(@RequestAttribute("userId") Long teacherId) {
|
|
|
- // TODO: Implement getClassList in TeacherService
|
|
|
- // List<ClassInfoDTO> classes = teacherService.getClassList(teacherId);
|
|
|
- // return Result.success(classes);
|
|
|
- return Result.success(null);
|
|
|
+ throw new UnsupportedOperationException("教师功能暂未开放:getClassList");
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 获取班级学生列表
|
|
|
- */
|
|
|
- @Operation(summary = "获取班级学生列表")
|
|
|
+ @Deprecated
|
|
|
+ @Operation(summary = "获取班级学生列表", deprecated = true)
|
|
|
@PostMapping("/classes/{classId}/students")
|
|
|
public Result<List<StudentInfoDTO>> getClassStudents(@RequestAttribute("userId") Long teacherId,
|
|
|
@PathVariable Long classId) {
|
|
|
- // TODO: Implement getClassStudents in TeacherService
|
|
|
- // List<StudentInfoDTO> students = teacherService.getClassStudents(teacherId, classId);
|
|
|
- // return Result.success(students);
|
|
|
- return Result.success(null);
|
|
|
+ throw new UnsupportedOperationException("教师功能暂未开放:getClassStudents");
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 添加学生到班级
|
|
|
- */
|
|
|
- @Operation(summary = "添加学生到班级")
|
|
|
+ @Deprecated
|
|
|
+ @Operation(summary = "添加学生到班级", deprecated = true)
|
|
|
@PostMapping("/classes/{classId}/students/add")
|
|
|
public Result<Boolean> addStudentToClass(@RequestAttribute("userId") Long teacherId,
|
|
|
@PathVariable Long classId,
|
|
|
@RequestBody Map<String, Long> body) {
|
|
|
- // Long studentId = body.get("studentId");
|
|
|
- // boolean success = teacherService.addStudentToClass(teacherId, classId, studentId);
|
|
|
- // return Result.success(success);
|
|
|
- return Result.error("功能开发中");
|
|
|
+ throw new UnsupportedOperationException("教师功能暂未开放:addStudentToClass");
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 从班级移除学生
|
|
|
- */
|
|
|
- @Operation(summary = "从班级移除学生")
|
|
|
+ @Deprecated
|
|
|
+ @Operation(summary = "从班级移除学生", deprecated = true)
|
|
|
@DeleteMapping("/classes/{classId}/students/{studentId}")
|
|
|
public Result<Boolean> removeStudentFromClass(@RequestAttribute("userId") Long teacherId,
|
|
|
@PathVariable Long classId,
|
|
|
@PathVariable Long studentId) {
|
|
|
- // boolean success = teacherService.removeStudentFromClass(teacherId, classId, studentId);
|
|
|
- // return Result.success(success);
|
|
|
- return Result.error("功能开发中");
|
|
|
+ throw new UnsupportedOperationException("教师功能暂未开放:removeStudentFromClass");
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 获取学生学习进度
|
|
|
- */
|
|
|
- @Operation(summary = "获取学生学习进度")
|
|
|
+ @Deprecated
|
|
|
+ @Operation(summary = "获取学生学习进度", deprecated = true)
|
|
|
@PostMapping("/students/{studentId}/progress")
|
|
|
public Result<StudentProgressDTO> getStudentProgress(@RequestAttribute("userId") Long teacherId,
|
|
|
@PathVariable Long studentId) {
|
|
|
- // TODO: Implement getStudentProgress in TeacherService
|
|
|
- // StudentProgressDTO progress = teacherService.getStudentProgress(teacherId, studentId);
|
|
|
- // return Result.success(progress);
|
|
|
- return Result.success(null);
|
|
|
+ throw new UnsupportedOperationException("教师功能暂未开放:getStudentProgress");
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 获取班级学习报告
|
|
|
- */
|
|
|
- @Operation(summary = "获取班级学习报告")
|
|
|
+ @Deprecated
|
|
|
+ @Operation(summary = "获取班级学习报告", deprecated = true)
|
|
|
@PostMapping("/classes/{classId}/report")
|
|
|
public Result<ClassReportDTO> getClassReport(@RequestAttribute("userId") Long teacherId,
|
|
|
@PathVariable Long classId) {
|
|
|
- // TODO: Implement getClassReport in TeacherService
|
|
|
- // ClassReportDTO report = teacherService.getClassReport(teacherId, classId);
|
|
|
- // return Result.success(report);
|
|
|
- return Result.success(null);
|
|
|
+ throw new UnsupportedOperationException("教师功能暂未开放:getClassReport");
|
|
|
}
|
|
|
}
|