Program/mooc/schemas/account.py
2025-01-03 14:37:35 +08:00

37 lines
705 B
Python

from pydantic import BaseModel
from typing import Optional
class AccountWechatsBase(BaseModel):
uniacid: int
token: str
encodingaeskey: str
level: int
name: str
account: str
original: str
signature: str
country: str
province: str
city: str
username: str
password: str
lastupdate: int
key: str
secret: str
styleid: int
subscribeurl: str
auth_refresh_token: str
class AccountWechatsCreate(AccountWechatsBase):
pass
class AccountWechatsUpdate(BaseModel):
token: Optional[str]
encodingaeskey: Optional[str]
class AccountWechats(AccountWechatsBase):
acid: int
class Config:
from_attributes = True