feat(projects): 新增FastAPI项目相关源码
This commit is contained in:
11
projects/web-fastapi/popup_api/schema.py
Normal file
11
projects/web-fastapi/popup_api/schema.py
Normal 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]
|
||||
Reference in New Issue
Block a user