Skip to content

Commit

Permalink
[MOA-484] 푸쉬알림 Url 변경 (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
shin-mallang authored Feb 29, 2024
1 parent 8601793 commit 5e07d38
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
@Component
public class NotificationFactory {

private static final String FUNDING_DETAIL_APP_PATH = "giftMoA://navigation?name=FundDetail&fundingId=";
private static final String MY_FUNDING_APP_PATH = "giftMoA://navigation?name=MyFunding&fundingId=";
private static final String ORDER_DETAIL_APP_PATH = "giftMoA://navigation?name=MyOrder&orderId=";
private static final String FUNDING_DETAIL_APP_PATH = "giftMoA://FundDetail&fundingId=";
private static final String MY_FUNDING_APP_PATH = "giftMoA://MyFunding&fundingId=";
private static final String ORDER_DETAIL_APP_PATH = "giftMoA://MyOrder&orderId=";

/**
* 펀딩 개설 완료
Expand Down Expand Up @@ -121,12 +121,13 @@ public Notification generateFundingSoonExpireNotification(
* 펀딩 취소
*/
public Notification generateFundingCancelNotification(
Long fundingId,
String fundingOwnerName,
String fundingTitle,
Member target
) {
return new Notification(
"giftMoA://navigation?name=MyFunding",
MY_FUNDING_APP_PATH + fundingId,
"펀딩 취소",
"%s님이 [%s] 펀딩을 취소했어요🥲 참여한 펀딩 금액은 3-5 영업일 이내로 환불될 예정입니다."
.formatted(fundingOwnerName, fundingTitle),
Expand Down Expand Up @@ -160,7 +161,7 @@ public Notification generateBirthdayNotification(
Member target
) {
return new Notification(
"giftMoA://navigation?name=Home",
"giftMoA://Home",
"친구 생일",
"내일 생일인 친구가 있어요 펀딩을 확인해보세요🎉",
null,
Expand Down

0 comments on commit 5e07d38

Please sign in to comment.