Skip to content

Commit bdf0d4d

Browse files
committed
refactor: 코드 정리
1 parent f677680 commit bdf0d4d

File tree

5 files changed

+4
-34
lines changed

5 files changed

+4
-34
lines changed

tuk-api/src/main/kotlin/nexters/tuk/application/gathering/GatheringCommandService.kt

Lines changed: 0 additions & 25 deletions
This file was deleted.

tuk-api/src/main/kotlin/nexters/tuk/application/push/PushDeepLink.kt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,5 @@ enum class PushDeepLink(
55
) {
66
DEFAULT("tuk-app://tuk"),
77
PROPOSAL("tuk-app://tuk/proposal-detail/%s"),
8-
98
;
10-
11-
fun getLink(proposalId: Long): String {
12-
return this.link.format(proposalId)
13-
}
149
}

tuk-api/src/main/kotlin/nexters/tuk/application/push/PushService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class PushService(
5353
?: return@forEach
5454
),
5555
body = pushMessage.body,
56-
deepLink = pushMessage.deepLink,
56+
deepLink = pushMessage.deepLink(pushMessage.meta?.proposalId),
5757
)
5858
)
5959
}

tuk-api/src/main/kotlin/nexters/tuk/application/push/PushTemplate.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,9 @@ data class PushData(
7575
val body: String
7676
get() = message.body
7777

78-
val deepLink: String
79-
get() = message.deepLink.link
78+
fun deepLink(proposalId: Long?): String {
79+
return message.deepLink.link.format(proposalId)
80+
}
8081
}
8182

8283
data class Meta(

tuk-api/src/main/kotlin/nexters/tuk/ui/gathering/GatheringController.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package nexters.tuk.ui.gathering
22

3-
import nexters.tuk.application.gathering.GatheringCommandService
43
import nexters.tuk.application.gathering.GatheringService
54
import nexters.tuk.application.gathering.GatheringMemberService
65
import nexters.tuk.application.gathering.GatheringQueryService

0 commit comments

Comments
 (0)