This commit is contained in:
2025-02-21 11:46:50 -05:00
parent 721b26ce97
commit 1bf255d0fe
12 changed files with 425 additions and 91 deletions

View File

@@ -10,6 +10,7 @@ from app.services.product import ProductService
from app.services.inventory import InventoryService
from app.services.task import TaskService
from app.services.storage import StorageService
from app.services.tcgplayer_api import TCGPlayerAPIService
from app.db.database import get_db
from app.schemas.file import CreateFileRequest
from app.schemas.box import CreateBoxRequest, UpdateBoxRequest, CreateOpenBoxRequest
@@ -18,6 +19,10 @@ from app.schemas.box import CreateBoxRequest, UpdateBoxRequest, CreateOpenBoxReq
DB = Annotated[Session, Depends(get_db)]
# Base Services (no dependencies besides DB)
def get_tcgplayer_api_service(db: DB) -> TCGPlayerAPIService:
"""TCGPlayerAPIService with only database dependency"""
return TCGPlayerAPIService(db)
def get_file_service(db: DB) -> FileService:
"""FileService with only database dependency"""
return FileService(db)