diff --git a/crates/sos24-use-case/src/form/interactor/create.rs b/crates/sos24-use-case/src/form/interactor/create.rs index ffff733..b2474c4 100644 --- a/crates/sos24-use-case/src/form/interactor/create.rs +++ b/crates/sos24-use-case/src/form/interactor/create.rs @@ -69,7 +69,7 @@ impl FormUseCase { .notify(format!( "申請「{}」が作成されました。\n{}", form_title.value(), - app_url::form(ctx, form_id.clone()), + app_url::committee_form(ctx, form_id.clone()), )) .await?; diff --git a/crates/sos24-use-case/src/news/interactor/create.rs b/crates/sos24-use-case/src/news/interactor/create.rs index b8a66ed..ab54530 100644 --- a/crates/sos24-use-case/src/news/interactor/create.rs +++ b/crates/sos24-use-case/src/news/interactor/create.rs @@ -130,7 +130,7 @@ Email : {email} .notify(format!( "お知らせ「{}」が公開されました。\n{}", news.title().clone().value(), - app_url::news(ctx, news_id.clone()), + app_url::committee_news(ctx, news_id.clone()), )) .await?; diff --git a/crates/sos24-use-case/src/project/interactor/create.rs b/crates/sos24-use-case/src/project/interactor/create.rs index 9978044..83cdf6d 100644 --- a/crates/sos24-use-case/src/project/interactor/create.rs +++ b/crates/sos24-use-case/src/project/interactor/create.rs @@ -80,7 +80,7 @@ impl ProjectUseCase { .notify(format!( "企画「{}」が登録されました。\n{}", project_title, - app_url::project(ctx, project_id.clone()), + app_url::committee_project(ctx, project_id.clone()), )) .await?; diff --git a/crates/sos24-use-case/src/shared/app_url.rs b/crates/sos24-use-case/src/shared/app_url.rs index e4e6122..3c3aed9 100644 --- a/crates/sos24-use-case/src/shared/app_url.rs +++ b/crates/sos24-use-case/src/shared/app_url.rs @@ -10,6 +10,26 @@ pub fn news(ctx: &impl ContextProvider, news_id: NewsId) -> String { format!("{}/news/{}", ctx.config().app_url, news_id.value()) } -pub fn project(ctx: &impl ContextProvider, project_id: ProjectId) -> String { - format!("{}/projects/{}", ctx.config().app_url, project_id.value()) +pub fn committee_form(ctx: &impl ContextProvider, form_id: FormId) -> String { + format!( + "{}/committee/forms/{}", + ctx.config().app_url, + form_id.value() + ) +} + +pub fn committee_news(ctx: &impl ContextProvider, news_id: NewsId) -> String { + format!( + "{}/committee/news/{}", + ctx.config().app_url, + news_id.value() + ) +} + +pub fn committee_project(ctx: &impl ContextProvider, project_id: ProjectId) -> String { + format!( + "{}/committee/projects/{}", + ctx.config().app_url, + project_id.value() + ) }