| 12345678910111213141516171819202122 |
- from fastapi import APIRouter, Depends
- from app.core.security import get_current_user
- router = APIRouter(prefix="/exam/progress", tags=["学习-进度"])
- @router.get("/summary")
- async def get_progress_summary(user: dict = Depends(get_current_user)):
- return {
- "total_questions_answered": 0,
- "correct_rate": 0.0,
- "study_streak_days": 0,
- "total_study_minutes": 0,
- "weak_subjects": [],
- "recommendations": [],
- }
- @router.get("/chapters")
- async def get_chapter_progress(user: dict = Depends(get_current_user)):
- return {"chapters": []}
|