ReviewRemoteRepository

리뷰 관련 API를 호출하는 인터페이스

Functions

Link copied to clipboard
@POST(value = "/review/{storeId}")
abstract fun createReview(@Path(value = "storeId") storeId: Long, @Body reviewRequestDto: ReviewRequestDto, @Header(value = "Authorization") token: String = UserLocalRepository.token!!): Call<ReviewResponseDto>

리뷰 생성

Link copied to clipboard
@DELETE(value = "/review/{reviewId}")
abstract fun deleteReview(@Path(value = "reviewId") reviewId: Long, @Header(value = "Authorization") token: String = UserLocalRepository.token!!): Call<Unit>

리뷰 삭제

Link copied to clipboard
@GET(value = "/review")
abstract fun getMyReviewList(@Header(value = "Authorization") token: String = UserLocalRepository.token!!): Call<MutableList<ReviewResponseDto>>

내가 작성한 리뷰 목록 조회

Link copied to clipboard
@PATCH(value = "/review/{reviewId}")
abstract fun modifyReview(@Path(value = "reviewId") reviewId: Long, @Body reviewRequestDto: ReviewRequestDto, @Header(value = "Authorization") token: String = UserLocalRepository.token!!): Call<ReviewResponseDto>

리뷰 수정