freeleaps-service-hub/app/central_storage/backend/application/document_app.py

16 lines
456 B
Python

from app.central_storage.backend.business.document_manager import (
DocumentBusinessManager,
)
class DocumentHub:
def __init__(self, user_id: str):
self.user_id = user_id
self.document_business_manager = DocumentBusinessManager(self.user_id)
return
async def get_document_by_id(self, document_id: str):
return await self.document_business_manager.get_document_details_by_id(
document_id
)