13 lines
408 B
Python
13 lines
408 B
Python
from __future__ import annotations
|
|
|
|
from backend.app.api.schemas import HistoryListResponse
|
|
from backend.app.db.history_repository import HistoryRepository
|
|
|
|
|
|
class HistoryService:
|
|
def __init__(self, repository: HistoryRepository):
|
|
self._repository = repository
|
|
|
|
def list_history(self) -> HistoryListResponse:
|
|
return HistoryListResponse(items=self._repository.list_history(limit=100))
|