__init__.py 539 B

1234567891011121314151617
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from fastapi import APIRouter
  4. from app.api.endpoints.analysis.analysis import analysis_line_chart
  5. from schemas.app.analysis import LineChart
  6. router = APIRouter(tags=["作业/考试分析-教师学生端"])
  7. router.add_api_route("/analysis/line",
  8. analysis_line_chart,
  9. methods=["get"],
  10. response_model=LineChart,
  11. response_model_exclude_none=True,
  12. summary="作业/考试分析-折线图")