feat: 直接数据库新建用户

This commit is contained in:
hackrobot
2024-03-20 19:43:50 +08:00
parent 16e7de9453
commit 8968cc7c87
12 changed files with 23 additions and 10 deletions

View File

@@ -1,11 +1,7 @@
from pydantic import BaseModel
# 用户信息
class UserCreate(BaseModel):
password: str
wxid: str
openId: str
sex: str
@@ -22,7 +18,5 @@ class UserCreate(BaseModel):
class User(UserCreate):
id: int
is_active: bool
class Config:
orm_mode = True