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
16 lines
383 B
Python
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
|