Skip to content

Commit 7e804f1

Browse files
committed
FIX: 변경된 모임 만남 제안 API 반영
1 parent b3b6038 commit 7e804f1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

core/data/src/main/java/com/plottwist/core/data/gathering/repository/GatheringRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ class GatheringRepositoryImpl @Inject constructor(
4747
): Result<Proposal> {
4848
try {
4949
val result = tukApiService.createPropose(
50-
gatheringId = gatheringId,
5150
CreateProposeRequest(
51+
gatheringId = gatheringId,
5252
purpose = CreateProposeData(
5353
whereTag = whereTag,
5454
whenTag = whenTag,

core/network/src/main/java/com/plottwist/core/network/model/gathering/CreateProposeRequest.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import kotlinx.serialization.Serializable
44

55
@Serializable
66
data class CreateProposeRequest(
7+
val gatheringId: Long?,
78
val purpose : CreateProposeData
89
)
910

core/network/src/main/java/com/plottwist/core/network/service/TukApiService.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ interface TukApiService {
5151
@Path("gatheringId") gatheringId: Long
5252
): GetGatheringNameResponse
5353

54-
@POST("/api/v1/gatherings/{gatheringId}/proposals")
54+
@POST("/api/v1/proposals")
5555
suspend fun createPropose(
56-
@Path("gatheringId") gatheringId: Long?,
5756
@Body createProposeRequest : CreateProposeRequest
5857
): CreateProposeResponse
5958

0 commit comments

Comments
 (0)