feat: refactor to FastAPI architecture v2.0
Some checks failed
Build & Push Docker / build (push) Has been cancelled
Some checks failed
Build & Push Docker / build (push) Has been cancelled
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
22
app/models/responses.py
Normal file
22
app/models/responses.py
Normal file
@@ -0,0 +1,22 @@
|
||||
"""API response models."""
|
||||
|
||||
from typing import Any, List, Optional
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class HealthResponse(BaseModel):
|
||||
status: str = "ok"
|
||||
version: str
|
||||
|
||||
|
||||
class ValidationResponse(BaseModel):
|
||||
valid: bool
|
||||
errors: List[str] = []
|
||||
|
||||
|
||||
class ImportExcelResponse(BaseModel):
|
||||
success: bool
|
||||
document: Optional[Any] = None
|
||||
errors: List[str] = []
|
||||
warnings: List[str] = []
|
||||
Reference in New Issue
Block a user