"""认证相关 DTO。""" from pydantic import BaseModel, Field class LoginReq(BaseModel): username: str = Field(min_length=1, max_length=64) password: str = Field(min_length=1, max_length=128)