feat: 将flask改造成fastapi

This commit is contained in:
hackrobot
2024-03-20 19:10:14 +08:00
parent 0cce9b9a2c
commit 9ec5ffc0f1
16 changed files with 430 additions and 1 deletions

28
schemas.py Normal file
View File

@@ -0,0 +1,28 @@
from pydantic import BaseModel
# 用户信息
class UserCreate(BaseModel):
password: str
wxid: str
openId: str
sex: str
country: str
province: str
sourceStr: str
usertype: str
nickname: str
wxaccount: str
remark: str
smallhead: str
class User(UserCreate):
id: int
is_active: bool
class Config:
orm_mode = True