from pydantic import BaseModel # 用户信息 class UserCreate(BaseModel): wxid: str openId: str sex: str country: str province: str sourceStr: str usertype: str nickname: str wxaccount: str remark: str smallhead: str bighead: str labels: str source: str v1: str class User(UserCreate): id: int class Config: orm_mode = True