refactor(watchlist): WatchlistAddDeps, scoped Arc deps
This commit is contained in:
10
crates/application/src/watchlist/deps.rs
Normal file
10
crates/application/src/watchlist/deps.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use domain::ports::{EventPublisher, MetadataClient, MovieRepository, WatchlistRepository};
|
||||
|
||||
pub struct WatchlistAddDeps {
|
||||
pub movie: Arc<dyn MovieRepository>,
|
||||
pub metadata: Arc<dyn MetadataClient>,
|
||||
pub watchlist: Arc<dyn WatchlistRepository>,
|
||||
pub event_publisher: Arc<dyn EventPublisher>,
|
||||
}
|
||||
Reference in New Issue
Block a user