Skip to content

Commit

Permalink
♻️ Distance 오타수정(distance -> distance)
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph704 committed Jul 4, 2024
1 parent d2ec4d7 commit 8aa3b26
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ final class DefaultMainRepository: MainRepository {
}

extension DefaultMainRepository {
func fetchPoi(lat: Double, lon: Double, distacne: Double) -> Single<Pois> {
func fetchPoi(lat: Double, lon: Double, distance: Double) -> Single<Pois> {
return networkManager.request(
target: .init(
NetworkService.getPoi(
latitude: lat,
longitude: lon,
distance: distacne
distance: distance
)
),
responseType: PoiResponseDTO.self
Expand All @@ -51,13 +51,13 @@ extension DefaultMainRepository {
}
}

func fetchMusicWithinArea(lat: Double, lon: Double, distacne: Double) -> Single<Musics> {
func fetchMusicWithinArea(lat: Double, lon: Double, distance: Double) -> Single<Musics> {
return networkManager.request(
target: .init(
NetworkService.getMusicWithinArea(
latitude: lat,
longitude: lon,
distance: distacne
distance: distance
)
),
responseType: MusicWithinAreaResponseDTO.self
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Foundation
import RxSwift

protocol MainRepository {
func fetchPoi(lat: Double, lon: Double, distacne: Double) -> Single<Pois>
func fetchPoi(lat: Double, lon: Double, distance: Double) -> Single<Pois>
func fetchMusicCountByDong(lat: Double, lon: Double) -> Single<MusicCountEntity>
func fetchMusicWithinArea(lat: Double, lon: Double, distacne: Double) -> Single<Musics>
func fetchMusicWithinArea(lat: Double, lon: Double, distance: Double) -> Single<Musics>
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ final class DefaultFetchingMusicWithinArea: FetchingMusicWithinArea {
}

func execute(lat: Double, lon: Double, distance: Double) -> Single<Musics> {
return mainRepository.fetchMusicWithinArea(lat: lat, lon: lon, distacne: distance)
return mainRepository.fetchMusicWithinArea(lat: lat, lon: lon, distance: distance)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ final class DefaultFetchingPOIUseCase: FetchingPOIUseCase {
}

func execute(lat: Double, lon: Double, distance: Double) -> Single<Pois> {
return mainRepository.fetchPoi(lat: lat, lon: lon, distacne: distance)
return mainRepository.fetchPoi(lat: lat, lon: lon, distance: distance)
}
}

0 comments on commit 8aa3b26

Please sign in to comment.