File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
data/src/main/java/com/plottwist/core/data/gathering/repository
network/src/main/java/com/plottwist/core/network Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import kotlinx.serialization.Serializable
44
55@Serializable
66data class CreateProposeRequest (
7+ val gatheringId : Long? ,
78 val purpose : CreateProposeData
89)
910
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments