structural refactor and codebase improvements
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use domain::ports::{
|
||||
DiaryQuery, EventPublisher, MovieCommand, MovieProfileRepository, MovieQuery, ReviewRepository,
|
||||
SocialQuery,
|
||||
DiaryExporter, DiaryQuery, EventPublisher, FollowGraphQuery, MovieCommand,
|
||||
MovieProfileRepository, MovieQuery, ReviewRepository, UserRepository,
|
||||
};
|
||||
|
||||
use crate::config::AppConfig;
|
||||
@@ -27,6 +27,24 @@ pub struct GetMovieSocialPageDeps {
|
||||
|
||||
pub struct GetActivityFeedDeps {
|
||||
pub diary: Arc<dyn DiaryQuery>,
|
||||
pub social_query: Arc<dyn SocialQuery>,
|
||||
pub social_query: Arc<dyn FollowGraphQuery>,
|
||||
pub config: AppConfig,
|
||||
}
|
||||
|
||||
pub struct GetUserFeedDeps {
|
||||
pub user: Arc<dyn UserRepository>,
|
||||
pub diary: Arc<dyn DiaryQuery>,
|
||||
}
|
||||
|
||||
pub struct GetDiaryDeps {
|
||||
pub diary: Arc<dyn DiaryQuery>,
|
||||
}
|
||||
|
||||
pub struct GetReviewHistoryDeps {
|
||||
pub diary: Arc<dyn DiaryQuery>,
|
||||
}
|
||||
|
||||
pub struct ExportDiaryDeps {
|
||||
pub diary: Arc<dyn DiaryQuery>,
|
||||
pub diary_exporter: Arc<dyn DiaryExporter>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user