feat(projects): 新增FastAPI项目相关源码

This commit is contained in:
100gle
2023-01-05 09:29:22 +08:00
parent fdd3e5ce6d
commit bb1e8b5101
29 changed files with 1217 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
from typing import Optional, TypeVar
from pydantic import BaseModel
T = TypeVar("T")
class Response(BaseModel):
code: int = 0
message: str
data: Optional[T]