from typing import Any

from pydantic import BaseModel, Field


class ApiSuccess(BaseModel):
    success: bool = True
    data: Any = None
    message: str = ""


class ApiError(BaseModel):
    success: bool = False
    message: str
    error_code: str
    details: list[Any] = Field(default_factory=list)
