solorpower/api_server/app/schemas/upload.py
haneulai a716dbef96
Some checks are pending
CI / Crawler (Python ${{ matrix.python-version }}) (3.10) (push) Waiting to run
CI / Crawler (Python ${{ matrix.python-version }}) (3.11) (push) Waiting to run
CI / API (Python 3.11) (push) Waiting to run
CI / Database migration (push) Waiting to run
CI / App web build (Node 20) (push) Waiting to run
feat: harden solar monitoring through stage 7
2026-08-07 14:07:22 +09:00

16 lines
383 B
Python

"""Excel 업로드 성공 응답 스키마."""
from typing import List, Literal, Optional
from pydantic import BaseModel, Field
class UploadResponse(BaseModel):
status: Literal["success"]
message: str
saved_count: int
error_count: int = 0
errors: List[str] = Field(default_factory=list)
plant_id: Optional[str] = None
plant_name: Optional[str] = None