11 lines
317 B
Python
11 lines
317 B
Python
|
|
from domain.entities import Device
|
||
|
|
from adapters.postgres.device_repository import DeviceRepository
|
||
|
|
|
||
|
|
|
||
|
|
class DeviceService:
|
||
|
|
def __init__(self, device_repo: DeviceRepository) -> None:
|
||
|
|
self._device_repo = device_repo
|
||
|
|
|
||
|
|
def get_all_devices(self) -> list[Device]:
|
||
|
|
return self._device_repo.get_all()
|