Project / core /models /response_handling_models.py
puzan789's picture
updated
ad87194
raw
history blame
348 Bytes
from typing import Any, Dict
from pydantic import BaseModel
class SuccessResponse(BaseModel):
status: str
code: int
data: Dict[str, Any]
class ErrorResponse(BaseModel):
status: str
error: Dict[str, Any]
class SuccessResponseUsermanagement(BaseModel):
status: str
message: str
code: int
data: Dict[str, Any]