feat(api): add Pydantic schemas

This commit is contained in:
bwstudio
2026-05-21 20:45:41 +08:00
parent 16baff934a
commit 29e06517cb
12 changed files with 120 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
from pydantic import BaseModel
class LoginRequest(BaseModel):
username: str
password: str
class TokenResponse(BaseModel):
access_token: str
token_type: str = "bearer"