mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2026-03-13 10:32:25 +08:00
15 lines
259 B
Python
15 lines
259 B
Python
from typing import Sequence, Dict
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class GetManyOut(BaseModel):
|
|
total: int
|
|
per_page: int = 10
|
|
page: int = 1
|
|
data: Sequence[Dict]
|
|
|
|
class Config:
|
|
fields = {
|
|
'per_page': 'perPage'
|
|
}
|