mirror of
https://git.victorphan.net/basketballcantho/ten-project.git
synced 2026-08-06 13:23:11 +07:00
hoàn thành bước3.2. PDF Gallery (Dashboard)
This commit is contained in:
@@ -45,3 +45,21 @@ class UserOut(BaseModel):
|
||||
class TokenPayload(BaseModel):
|
||||
sub: int # user id
|
||||
exp: int
|
||||
|
||||
|
||||
# ── PDFs ──────────────────────────────────────────────────────────────────────
|
||||
|
||||
class PDFOut(BaseModel):
|
||||
id: int
|
||||
title: str
|
||||
total_pages: int | None
|
||||
created_at: datetime
|
||||
|
||||
model_config = {"from_attributes": True}
|
||||
|
||||
|
||||
class PDFUploadResult(BaseModel):
|
||||
filename: str
|
||||
success: bool
|
||||
pdf: PDFOut | None = None
|
||||
error: str | None = None
|
||||
|
||||
Reference in New Issue
Block a user