fix ocr
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user