Skip to content

Commit

Permalink
[feat/naver_map_marker]: 데이터 이름 변경 에러 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim-swit committed Mar 14, 2024
1 parent 37ac326 commit 1ffd643
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import androidx.paging.PagingState
import org.gdsc.data.model.RegisteredRestaurantResponse
import org.gdsc.data.network.RestaurantAPI
import org.gdsc.domain.SortType
import org.gdsc.domain.model.request.RestaurantSearchMapRequest
import org.gdsc.domain.model.request.RestaurantSearchRequest

class RestaurantByMapPagingSource(
private val api: RestaurantAPI,
private val sortType: SortType,
private val restaurantSearchMapRequest: RestaurantSearchMapRequest,
private val restaurantSearchRequest: RestaurantSearchRequest,
): PagingSource<Int, RegisteredRestaurantResponse>() {
override suspend fun load(params: LoadParams<Int>): LoadResult<Int, RegisteredRestaurantResponse> {
val page = params.key ?: 1
Expand All @@ -19,7 +19,7 @@ class RestaurantByMapPagingSource(
page = page,
size = params.loadSize,
sort = sortType.key,
restaurantSearchMapRequest = restaurantSearchMapRequest
restaurantSearchRequest = restaurantSearchRequest
)
LoadResult.Page(
data = items.data.restaurants,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class RestaurantDataSourceImpl @Inject constructor(
RestaurantByMapPagingSource(
restaurantAPI,
sortType,
restaurantSearchMapRequest
restaurantSearchRequest
)
}.flow.cachedIn(coroutineScope)
}
Expand Down
2 changes: 1 addition & 1 deletion data/src/main/java/org/gdsc/data/network/RestaurantAPI.kt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ interface RestaurantAPI {
@Query("page") page: Int? = null,
@Query("size") size: Int? = null,
@Query("sort") sort: String? = null,
@Body restaurantSearchMapRequest: RestaurantSearchMapRequest,
@Body restaurantSearchRequest: RestaurantSearchRequest,
): Response<RegisteredRestaurantPaging>

@GET("/api/v1/restaurant/{recommendRestaurantId}/review")
Expand Down

0 comments on commit 1ffd643

Please sign in to comment.