Initial project commit

This commit is contained in:
2026-05-09 16:40:29 +08:00
commit 02b0259a9e
267 changed files with 54891 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
from typing import Generic, TypeVar
from pydantic import BaseModel, Field
T = TypeVar("T")
class ResponseBase(BaseModel):
code: int = 0
message: str = "success"
class PageParams(BaseModel):
page: int = 1
page_size: int = Field(default=20, le=100)
class PageResponse(ResponseBase, Generic[T]):
total: int
items: list[T]