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