__init__.py 463 B

123456789101112131415161718
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from fastapi import APIRouter
  4. from schemas.app.student import StudentList
  5. from .student import get_students
  6. router = APIRouter(tags=["个人中心(教师)"])
  7. router.add_api_route("/students",
  8. get_students,
  9. response_model=StudentList,
  10. response_model_exclude_none=True,
  11. summary="个人中心-学生列表")
  12. __all__ = [router]