diff --git a/backend/bloom/dependencies.py b/backend/bloom/dependencies.py index 3014e1b4..5b2b1b89 100644 --- a/backend/bloom/dependencies.py +++ b/backend/bloom/dependencies.py @@ -2,7 +2,6 @@ from bloom.config import settings from fastapi.security import APIKeyHeader from pydantic import BaseModel, ConfigDict, Field,conint -from pydantic.generics import GenericModel from datetime import datetime, timedelta from typing import Generic,TypeVar, List from enum import Enum @@ -49,7 +48,7 @@ class PageParams(BaseModel): T = TypeVar("T") -class PagedResponseSchema(GenericModel,Generic[T]): +class PagedResponseSchema(BaseModel,Generic[T]): total: int limit: int offset: int diff --git a/backend/bloom/domain/api.py b/backend/bloom/domain/api.py deleted file mode 100644 index 28881bb9..00000000 --- a/backend/bloom/domain/api.py +++ /dev/null @@ -1,13 +0,0 @@ -from pydantic import BaseModel -from typing import Generic,TypeVar, List -from typing_extensions import Annotated, Literal, Optional -from datetime import datetime, timedelta -from enum import Enum -import redis -from pydantic.generics import GenericModel -from bloom.config import settings - - -rd = redis.Redis(host=settings.redis_host, port=settings.redis_port, db=0) - -