feat: 백엔드 API 연동 (HTTP 클라이언트 + 홈 화면 실데이터)

- VITE_API_BASE_URL 기반 fetch 클라이언트 및 ApiError 처리
- api/spots, api/matches 타입드 모듈
- HomePage: 스팟/한줄평/메이트 실제 로드, 체크인·매칭 신청 API 연동
- 임시 세션 스토어(인증 도입 전, userId/dogId)
- 로딩/에러/빈 상태 처리

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
sb
2026-07-11 08:07:53 +09:00
parent 3130ce3fb7
commit bbafb3ed4d
5 changed files with 200 additions and 29 deletions
+13
View File
@@ -0,0 +1,13 @@
import { defineStore } from 'pinia'
import { ref } from 'vue'
/**
* 임시 세션 스토어 (인증 도입 전까지 사용).
* local 시드 데이터 기준: 내 유저=1, 내 강아지(몽이)=1.
* 인증(4번) 도입 시 로그인 응답으로 대체.
*/
export const useSessionStore = defineStore('session', () => {
const userId = ref<number>(1)
const dogId = ref<number>(1)
return { userId, dogId }
})