mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-25 01:13:01 +08:00
33 lines
883 B
Python
33 lines
883 B
Python
from domain.notification.ports.repository import (
|
|
IActivityFeedRepository,
|
|
IActivityStreamRepository,
|
|
INotificationRepository,
|
|
)
|
|
|
|
from infrastructure.database.repository.base import BaseRepository
|
|
|
|
from infrastructure.database.notification.entities import (
|
|
ActivityFeed,
|
|
ActivityStream,
|
|
Notification,
|
|
)
|
|
|
|
|
|
class ActivityFeedRepository(BaseRepository[ActivityFeed], IActivityFeedRepository):
|
|
def __init__(self) -> None:
|
|
self.model = ActivityFeed
|
|
super().__init__()
|
|
|
|
|
|
class ActivityStreamRepository(
|
|
BaseRepository[ActivityStream], IActivityStreamRepository
|
|
):
|
|
def __init__(self) -> None:
|
|
self.model = ActivityStream
|
|
super().__init__()
|
|
|
|
|
|
class NotificationRepository(BaseRepository[Notification], INotificationRepository):
|
|
def __init__(self) -> None:
|
|
self.model = Notification
|
|
super().__init__()
|