diff --git a/backend/feature/post/src/application/use_case/get_post_by_semantic_id_use_case.rs b/backend/feature/post/src/application/use_case/get_post_by_semantic_id_use_case.rs index 6794b64..f6c62c3 100644 --- a/backend/feature/post/src/application/use_case/get_post_by_semantic_id_use_case.rs +++ b/backend/feature/post/src/application/use_case/get_post_by_semantic_id_use_case.rs @@ -15,12 +15,12 @@ pub trait GetPostBySemanticIdUseCase: Send + Sync { async fn execute(&self, semantic_id: &str, user_id: Option) -> Result; } -pub struct GetPostIdBySemanticIdUseCaseImpl { +pub struct GetPostBySemanticIdUseCaseImpl { post_repository: Arc, get_post_by_id_use_case: Arc, } -impl GetPostIdBySemanticIdUseCaseImpl { +impl GetPostBySemanticIdUseCaseImpl { pub fn new( post_repository: Arc, get_post_by_id_use_case: Arc, @@ -33,7 +33,7 @@ impl GetPostIdBySemanticIdUseCaseImpl { } #[async_trait] -impl GetPostBySemanticIdUseCase for GetPostIdBySemanticIdUseCaseImpl { +impl GetPostBySemanticIdUseCase for GetPostBySemanticIdUseCaseImpl { async fn execute(&self, semantic_id: &str, user_id: Option) -> Result { let id = self .post_repository diff --git a/backend/server/src/container.rs b/backend/server/src/container.rs index c755205..e2dd8b6 100644 --- a/backend/server/src/container.rs +++ b/backend/server/src/container.rs @@ -40,7 +40,7 @@ use post::{ get_all_labels_use_case::GetAllLabelsUseCaseImpl, get_all_post_info_use_case::GetAllPostInfoUseCaseImpl, get_post_by_id_use_case::GetFullPostUseCaseImpl, - get_post_by_semantic_id_use_case::GetPostIdBySemanticIdUseCaseImpl, + get_post_by_semantic_id_use_case::GetPostBySemanticIdUseCaseImpl, update_label_use_case::UpdateLabelUseCaseImpl, update_post_use_case::UpdatePostUseCaseImpl, }, framework::db::{ @@ -98,7 +98,7 @@ impl Container { Arc::new(GetAllPostInfoUseCaseImpl::new(post_repository.clone())); let get_post_by_id_use_case = Arc::new(GetFullPostUseCaseImpl::new(post_repository.clone())); - let get_post_by_semantic_id_use_case = Arc::new(GetPostIdBySemanticIdUseCaseImpl::new( + let get_post_by_semantic_id_use_case = Arc::new(GetPostBySemanticIdUseCaseImpl::new( post_repository.clone(), get_post_by_id_use_case.clone(), ));