feat: 直接数据库新建用户
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user