ExamProgressController.java 865 B

1234567891011121314151617181920212223242526272829
  1. package com.pharmacopoeia.controller;
  2. import org.springframework.http.ResponseEntity;
  3. import org.springframework.web.bind.annotation.*;
  4. import java.util.List;
  5. import java.util.Map;
  6. @RestController
  7. @RequestMapping("/api/v1/exam/progress")
  8. public class ExamProgressController {
  9. @GetMapping("/summary")
  10. public ResponseEntity<Map<String, Object>> getProgressSummary() {
  11. return ResponseEntity.ok(Map.of(
  12. "total_questions_answered", 0,
  13. "correct_rate", 0.0,
  14. "study_streak_days", 0,
  15. "total_study_minutes", 0,
  16. "weak_subjects", List.of(),
  17. "recommendations", List.of()
  18. ));
  19. }
  20. @GetMapping("/chapters")
  21. public ResponseEntity<Map<String, Object>> getChapterProgress() {
  22. return ResponseEntity.ok(Map.of("chapters", List.of()));
  23. }
  24. }