9 lines
346 B
Python
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")
|