progress.py 594 B

12345678910111213141516171819202122
  1. from fastapi import APIRouter, Depends
  2. from app.core.security import get_current_user
  3. router = APIRouter(prefix="/exam/progress", tags=["学习-进度"])
  4. @router.get("/summary")
  5. async def get_progress_summary(user: dict = Depends(get_current_user)):
  6. return {
  7. "total_questions_answered": 0,
  8. "correct_rate": 0.0,
  9. "study_streak_days": 0,
  10. "total_study_minutes": 0,
  11. "weak_subjects": [],
  12. "recommendations": [],
  13. }
  14. @router.get("/chapters")
  15. async def get_chapter_progress(user: dict = Depends(get_current_user)):
  16. return {"chapters": []}