refacto: reorganize files to easily add an API service
This commit is contained in:
parent
5c480db410
commit
9c883a8eca
22 changed files with 26 additions and 23 deletions
7
server/app/ports/reading_repository.py
Normal file
7
server/app/ports/reading_repository.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from abc import ABC, abstractmethod
|
||||
|
||||
class ReadingRepository(ABC):
|
||||
@abstractmethod
|
||||
def insert_reading(self, device_id: str, pulse_count: int) -> None:
|
||||
"""Persiste un relevé"""
|
||||
...
|
||||
Loading…
Add table
Add a link
Reference in a new issue