12345678910111213141516171819202122 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- from typing import List
- from pydantic.main import BaseModel
- from schemas.base import ListMixin
- class SchoolClassItem(BaseModel):
- id: int
- name: str
- student_amount: int
- class Config:
- orm_mode = True
- class SchoolClassList(ListMixin):
- data: List[SchoolClassItem] = []
|