chore: Remove unused model
This commit is contained in:
@@ -5,7 +5,6 @@ from .base import (
|
||||
BaseResponse,
|
||||
ErrorResponse,
|
||||
SuccessResponse,
|
||||
PaginatedResponse,
|
||||
IdResponse,
|
||||
StatusResponse,
|
||||
)
|
||||
@@ -85,7 +84,6 @@ __all__ = [
|
||||
"BaseResponse",
|
||||
"ErrorResponse",
|
||||
"SuccessResponse",
|
||||
"PaginatedResponse",
|
||||
"IdResponse",
|
||||
"StatusResponse",
|
||||
# Notes models
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"""Base Pydantic models for common response patterns."""
|
||||
|
||||
from datetime import datetime
|
||||
from typing import Any, Dict, Generic, List, Optional, TypeVar, Union
|
||||
from typing import Any, Dict, Optional, Union
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
|
||||
@@ -37,26 +37,6 @@ class SuccessResponse(BaseResponse):
|
||||
data: Optional[Dict[str, Any]] = Field(None, description="Optional response data")
|
||||
|
||||
|
||||
T = TypeVar("T")
|
||||
|
||||
|
||||
class PaginatedResponse(BaseResponse, Generic[T]):
|
||||
"""Generic paginated response model."""
|
||||
|
||||
items: List[T] = Field(description="List of items")
|
||||
total_count: Optional[int] = Field(
|
||||
None, description="Total number of items available"
|
||||
)
|
||||
page: Optional[int] = Field(None, description="Current page number")
|
||||
page_size: Optional[int] = Field(None, description="Number of items per page")
|
||||
has_more: Optional[bool] = Field(
|
||||
None, description="Whether more items are available"
|
||||
)
|
||||
cursor: Optional[str] = Field(
|
||||
None, description="Cursor for next page (if using cursor-based pagination)"
|
||||
)
|
||||
|
||||
|
||||
class IdResponse(BaseResponse):
|
||||
"""Response model for operations that return a new ID."""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user