add fastapi init

This commit is contained in:
XIE7654
2025-07-16 21:14:02 +08:00
parent ed3e325962
commit 682e3805eb
11 changed files with 155 additions and 0 deletions

9
chat/schemas/user.py Normal file
View File

@@ -0,0 +1,9 @@
from pydantic import BaseModel
class UserOut(BaseModel):
id: int
username: str
email: str = None
class Config:
orm_mode = True