From d1944b7507eb6b9ec97dd5f5d25825f134128f13 Mon Sep 17 00:00:00 2001 From: Arata Date: Fri, 3 May 2024 21:07:09 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Slack=E9=80=9A=E7=9F=A5=E3=81=AEURL?= =?UTF-8?q?=E3=82=92=E5=AE=9F=E5=A7=94=E4=BA=BA=E5=90=91=E3=81=91=E3=81=AE?= =?UTF-8?q?=E3=82=82=E3=81=AE=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/form/interactor/create.rs | 2 +- .../src/news/interactor/create.rs | 2 +- .../src/project/interactor/create.rs | 2 +- crates/sos24-use-case/src/shared/app_url.rs | 24 +++++++++++++++++-- 4 files changed, 25 insertions(+), 5 deletions(-) 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() + ) }