This commit is contained in:
2026-03-12 12:32:29 +08:00
parent c0f9ddabbf
commit 470446fa6f
18 changed files with 591 additions and 142 deletions

View File

@@ -1,12 +1,11 @@
from datetime import datetime
from uuid import UUID
from pydantic import BaseModel
from app.models.report import ReportType
from app.schemas.base import CamelModel
class ReportCreate(BaseModel):
class ReportCreate(CamelModel):
report_type: ReportType
include_summary: bool = True
include_transactions: bool = True
@@ -17,7 +16,7 @@ class ReportCreate(BaseModel):
include_screenshots: bool = False
class ReportOut(BaseModel):
class ReportOut(CamelModel):
id: UUID
case_id: UUID
report_type: ReportType
@@ -25,9 +24,7 @@ class ReportOut(BaseModel):
version: int
created_at: datetime
model_config = {"from_attributes": True}
class ReportListOut(BaseModel):
class ReportListOut(CamelModel):
items: list[ReportOut]
total: int