structural refactor and codebase improvements
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use domain::ports::{
|
||||
EventPublisher, MetadataClient, MovieCommand, MovieQuery, WatchlistRepository,
|
||||
EventPublisher, MetadataClient, MovieCommand, MovieQuery, RemoteWatchlistRepository,
|
||||
UserRepository, WatchlistRepository,
|
||||
};
|
||||
|
||||
pub struct WatchlistAddDeps {
|
||||
@@ -11,3 +12,22 @@ pub struct WatchlistAddDeps {
|
||||
pub watchlist: Arc<dyn WatchlistRepository>,
|
||||
pub event_publisher: Arc<dyn EventPublisher>,
|
||||
}
|
||||
|
||||
pub struct GetWatchlistForOwnerDeps {
|
||||
pub user: Arc<dyn UserRepository>,
|
||||
pub watchlist: Arc<dyn WatchlistRepository>,
|
||||
pub remote_watchlist: Arc<dyn RemoteWatchlistRepository>,
|
||||
}
|
||||
|
||||
pub struct GetWatchlistDeps {
|
||||
pub watchlist: Arc<dyn WatchlistRepository>,
|
||||
}
|
||||
|
||||
pub struct IsOnWatchlistDeps {
|
||||
pub watchlist: Arc<dyn WatchlistRepository>,
|
||||
}
|
||||
|
||||
pub struct RemoveFromWatchlistDeps {
|
||||
pub watchlist: Arc<dyn WatchlistRepository>,
|
||||
pub event_publisher: Arc<dyn EventPublisher>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user