Skip to content

Commit

Permalink
FIX : 잘못된 어노테이션 수정, 요청 실패 시 익셉션을 스낵바로 띄움
Browse files Browse the repository at this point in the history
  • Loading branch information
minseonglove committed Feb 11, 2023
1 parent c9f5a21 commit 89ec937
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ interface ProductEditorService {
@Part files: List<MultipartBody.Part>
): String

@Multipart
@POST("product/deleteProduct/{productId}")
suspend fun postDeleteProduct(
@Path("productId") productId: Long
@Path("productId", encoded = true) productId: Long
): Boolean

@Multipart
@POST("product/checkUserIsSame/{productId}")
suspend fun postCheckUserIsSame(
@Path("productId") productId: Long
@Path("productId", encoded = true) productId: Long
): Boolean
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class DeleteFragment : BaseFragment<FragmentDeleteBinding>(
if (it.isSuccess) {
sendSnackBar(it.toString())
} else {
sendSnackBar("어.. 요건 디스코드를 확인해")
sendSnackBar(it.exceptionOrNull().toString())
}
}
}
Expand All @@ -38,7 +38,7 @@ class DeleteFragment : BaseFragment<FragmentDeleteBinding>(
if (it.isSuccess) {
sendSnackBar(it.toString())
} else {
sendSnackBar("어.. 요건 디스코드를 확인해")
sendSnackBar(it.exceptionOrNull().toString())
}
}
}
Expand Down

0 comments on commit 89ec937

Please sign in to comment.