cc3a0fa836
CI / build (push) Failing after 14m12s
- 매칭 버튼: 신청 후 "진행중" 표시, 무료 소진(429) 안내
- 헤더 알림 벨: 받은 매칭 신청 목록 + 수락/거절
- 실시간 알림: STOMP /topic/users/{id} 구독(신청/수락/거절/만료 토스트)
- 수락 시 1:1 매칭 채팅(MatchChatDialog, /topic/matches/{id})
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
18 lines
437 B
TypeScript
18 lines
437 B
TypeScript
import { http } from './http'
|
|
|
|
export interface ChatMessage {
|
|
id: number
|
|
spotId: number | null
|
|
matchId: number | null
|
|
senderId: number
|
|
senderNickname: string
|
|
content: string
|
|
createdAt: string
|
|
}
|
|
|
|
export const chatApi = {
|
|
history: (spotId: number) => http.get<ChatMessage[]>(`/api/chat/spots/${spotId}/messages`),
|
|
matchHistory: (matchId: number) =>
|
|
http.get<ChatMessage[]>(`/api/chat/matches/${matchId}/messages`),
|
|
}
|