123456789101112131415161718192021222324 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- from typing import List
- from pydantic import Field
- from pydantic.main import BaseModel
- from schemas.base import ListMixin
- class StudentItem(BaseModel):
- id: int
- sno: str
- name: str
- class_id: int
- class_name: str
- class Config:
- orm_mode = True
- class StudentList(ListMixin):
- data: List[StudentItem] = None
|