- 매칭 버튼: 신청 후 "진행중" 표시, 무료 소진(429) 안내
- 헤더 알림 벨: 받은 매칭 신청 목록 + 수락/거절
- 실시간 알림: STOMP /topic/users/{id} 구독(신청/수락/거절/만료 토스트)
- 수락 시 1:1 매칭 채팅(MatchChatDialog, /topic/matches/{id})
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+4
-1
@@ -2,7 +2,8 @@ import { http } from './http'
|
||||
|
||||
export interface ChatMessage {
|
||||
id: number
|
||||
spotId: number
|
||||
spotId: number | null
|
||||
matchId: number | null
|
||||
senderId: number
|
||||
senderNickname: string
|
||||
content: string
|
||||
@@ -11,4 +12,6 @@ export interface ChatMessage {
|
||||
|
||||
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`),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user