2026-09-10 13:56:08 +08:00
|
|
|
from pydantic import BaseModel, ConfigDict, Field
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class VisitorTokenResponse(BaseModel):
|
|
|
|
|
model_config = ConfigDict(frozen=True)
|
|
|
|
|
|
|
|
|
|
access_token: str = Field(min_length=1)
|
|
|
|
|
token_type: str = "Bearer"
|
|
|
|
|
expires_in: int = Field(ge=60, le=3600)
|