__init__.py 473 B

1234567891011121314151617
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from fastapi import APIRouter
  4. from schemas.app.schoolclass import SchoolClassList
  5. from .teacher import get_classes
  6. router = APIRouter(tags=["个人中心(教师)"])
  7. router.add_api_route("/myclasses",
  8. get_classes,
  9. response_model=SchoolClassList,
  10. response_model_exclude_none=True,
  11. summary="个人中心-我的班级")
  12. __all__ = [router]