feat: 데이트 명소를 전국 TourAPI 2,435곳으로 채우고 구 중심 30km 거리 기준으로 고르기

This commit is contained in:
minaChoi committed 2026-10-08 09:03:48 +09:00
1 parent e8382f450b
commit 87055a73dc
16 files changed
+2659 -47

No files matched your search

@@ -222,7 +222,7 @@ export const getWeekRankingOptions = (options?: Options<GetWeekRankingData>) =>
export const listPlacesQueryKey = (options: Options<ListPlacesData>) => createQueryKey('listPlaces', options);
/**
* 날씨 맞춤 데이트 명소
* 날씨 맞춤 데이트 명소 (구 중심 30km 안, 없으면 가장 가까운 곳)
*/
export const listPlacesOptions = (options: Options<ListPlacesData>) => queryOptions<ListPlacesResponse, ListPlacesError, ListPlacesResponse, ReturnType<typeof listPlacesQueryKey>>({
queryFn: async ({ queryKey, signal }) => {
+1 -1
View File
@@ -69,7 +69,7 @@ export const getWeek = <ThrowOnError extends boolean = true>(options: Options<Ge
export const getWeekRanking = <ThrowOnError extends boolean = true>(options?: Options<GetWeekRankingData, ThrowOnError>): RequestResult<GetWeekRankingResponses, unknown, ThrowOnError> => (options?.client ?? client).get<GetWeekRankingResponses, unknown, ThrowOnError>({ url: '/v1/week/ranking', ...options });
/**
* 날씨 맞춤 데이트 명소
* 날씨 맞춤 데이트 명소 (구 중심 30km 안, 없으면 가장 가까운 곳)
*/
export const listPlaces = <ThrowOnError extends boolean = true>(options: Options<ListPlacesData, ThrowOnError>): RequestResult<ListPlacesResponses, ListPlacesErrors, ThrowOnError> => (options.client ?? client).get<ListPlacesResponses, ListPlacesErrors, ThrowOnError>({ url: '/v1/week/place/list', ...options });
+12
View File
@@ -792,6 +792,18 @@ export type PlaceData = {
* Is Good
*/
is_good: boolean;
/**
* Distance Km
*/
distance_km: number;
/**
* Image
*/
image?: string | null;
/**
* Image Credit
*/
image_credit?: string | null;
};
/**