Files
banban/talkingq-url/banban/schemas/auth.py
2026-04-27 18:40:20 +08:00

14 lines
307 B
Python

from pydantic import BaseModel, Field
class LoginRequest(BaseModel):
username: str = Field(min_length=1, max_length=191)
password: str = Field(min_length=1, max_length=128)
class LoginResponse(BaseModel):
access_token: str
token_type: str = "bearer"
expires_in: int
user_id: int