Files
FACULTATE-HEALTHCARE_MANAGER/SicknessPrediction/models/response.py
T
2024-05-30 15:40:13 +03:00

9 lines
346 B
Python

from pydantic import BaseModel, Field
from typing import Any
class BaseResponse(BaseModel):
StatusCode: int = Field(..., description="The status code of the response")
Message: str = Field(..., description="A message detailing the response")
Data: Any = Field(default=None, description="Optional data payload that can be any type")