Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /mundobien2025_fastapi-basekit /fastapi_basekit /schema /base.py
| # app/schemas/base_response.py | |
| from typing import Any, Dict, Generic, List, Optional, TypeVar | |
| from pydantic import BaseModel, ConfigDict | |
| # Define un tipo genérico | |
| T = TypeVar("T") | |
| class BaseResponse(BaseModel, Generic[T]): | |
| data: Optional[T] = None | |
| message: str = "Operación exitosa" | |
| status: str = "success" | |
| model_config = ConfigDict(from_attributes=True) | |
| class BasePaginationResponse(BaseModel, Generic[T]): | |
| data: List[T] | |
| message: str = "Operación exitosa" | |
| status: str = "success" | |
| pagination: Optional[Dict[str, Any]] = None | |
| model_config = ConfigDict(from_attributes=True) | |
Xet Storage Details
- Size:
- 621 Bytes
- Xet hash:
- 5db72b4942358bdf736850a530e2e3ff5a0e12c88364b5d13f61f59c248e1f36
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.