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,13 +1,12 @@
from datetime import datetime
from uuid import UUID
from pydantic import BaseModel
from app.models.evidence_image import SourceApp
from app.models.transaction import Direction
from app.schemas.base import CamelModel
class TransactionOut(BaseModel):
class TransactionOut(CamelModel):
id: UUID
case_id: UUID
source_app: SourceApp
@@ -25,21 +24,19 @@ class TransactionOut(BaseModel):
is_duplicate: bool
is_transit: bool
model_config = {"from_attributes": True}
class TransactionListOut(BaseModel):
class TransactionListOut(CamelModel):
items: list[TransactionOut]
total: int
class FlowNodeOut(BaseModel):
class FlowNodeOut(CamelModel):
id: str
label: str
type: str
class FlowEdgeOut(BaseModel):
class FlowEdgeOut(CamelModel):
source: str
target: str
amount: float
@@ -47,6 +44,6 @@ class FlowEdgeOut(BaseModel):
trade_time: str
class FlowGraphOut(BaseModel):
class FlowGraphOut(CamelModel):
nodes: list[FlowNodeOut]
edges: list[FlowEdgeOut]