aiteamutils 0.2.43__tar.gz → 0.2.45__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/PKG-INFO +1 -1
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/aiteamutils/dependencies.py +2 -5
- aiteamutils-0.2.45/aiteamutils/version.py +2 -0
- aiteamutils-0.2.43/aiteamutils/version.py +0 -2
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/.cursorrules +0 -0
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/.gitignore +0 -0
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/README.md +0 -0
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/aiteamutils/__init__.py +0 -0
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/aiteamutils/base_model.py +0 -0
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/aiteamutils/base_repository.py +0 -0
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/aiteamutils/base_service.py +0 -0
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/aiteamutils/cache.py +0 -0
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/aiteamutils/config.py +0 -0
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/aiteamutils/database.py +0 -0
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/aiteamutils/enums.py +0 -0
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/aiteamutils/exceptions.py +0 -0
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/aiteamutils/security.py +0 -0
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/aiteamutils/validators.py +0 -0
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/pyproject.toml +0 -0
- {aiteamutils-0.2.43 → aiteamutils-0.2.45}/setup.py +0 -0
@@ -47,7 +47,7 @@ class ServiceRegistry:
|
|
47
47
|
# ServiceRegistry 초기화
|
48
48
|
service_registry = ServiceRegistry()
|
49
49
|
|
50
|
-
|
50
|
+
def get_service(name: str):
|
51
51
|
"""등록된 서비스를 가져오는 의존성 함수
|
52
52
|
|
53
53
|
Args:
|
@@ -55,15 +55,12 @@ async def get_service(name: str):
|
|
55
55
|
|
56
56
|
Returns:
|
57
57
|
Callable: 서비스 인스턴스를 반환하는 의존성 함수
|
58
|
-
|
59
|
-
Raises:
|
60
|
-
CustomException: 서비스 생성 실패 시
|
61
58
|
"""
|
62
59
|
async def _get_service(db_service = Depends(get_database_service)):
|
63
60
|
try:
|
64
61
|
repository_class, service_class = service_registry.get(name)
|
65
62
|
repository = repository_class(db_service)
|
66
|
-
return service_class(repository)
|
63
|
+
return service_class(repository, db_service)
|
67
64
|
except CustomException as e:
|
68
65
|
raise e
|
69
66
|
except Exception as e:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|