diff --git a/src/api/spots.ts b/src/api/spots.ts index ebd3b69..e2acdf6 100644 --- a/src/api/spots.ts +++ b/src/api/spots.ts @@ -14,6 +14,14 @@ export interface Mate { breed: string | null } +export interface AiMate { + dogId: number + name: string + breed: string | null + score: number + reason: string +} + export interface Review { id: number tag: string | null @@ -31,6 +39,8 @@ export interface CheckInResult { export const spotsApi = { list: () => http.get('/api/spots'), mates: (spotId: number) => http.get(`/api/spots/${spotId}/mates`), + aiMates: (spotId: number, dogId: number) => + http.get(`/api/spots/${spotId}/ai-mates?dogId=${dogId}`), reviews: (spotId: number) => http.get(`/api/spots/${spotId}/reviews`), checkIn: (spotId: number, userId: number, dogId: number) => http.post(`/api/spots/${spotId}/checkins`, { userId, dogId }), diff --git a/src/pages/HomePage.vue b/src/pages/HomePage.vue index 0126a9b..8ecbb18 100644 --- a/src/pages/HomePage.vue +++ b/src/pages/HomePage.vue @@ -46,6 +46,36 @@ :spot-name="currentSpot.name" /> + +
+
+ AI 궁합 추천 +
+
+ + 사이좋게 지낼 강아지를 찾는 중… +
+ +
+
{{ currentSpot ? currentSpot.name : '스팟' }} · 오늘의 한줄평 @@ -94,7 +124,7 @@