refacto: reorganize POC into clean architecture for modularity
This commit is contained in:
parent
9dd53b1b24
commit
0830c2f182
14 changed files with 194 additions and 104 deletions
7
app/consumer/src/ports/device_repository.py
Normal file
7
app/consumer/src/ports/device_repository.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from abc import ABC, abstractmethod
|
||||
|
||||
class DeviceRepository(ABC):
|
||||
@abstractmethod
|
||||
def get_or_create_device_id(self, dev_eui: str) -> str:
|
||||
"""Retourne le device_id, crée le device s'il est inconnu"""
|
||||
...
|
||||
Loading…
Add table
Add a link
Reference in a new issue