[MM-169] 북마크 CRUD API 개발 #114
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#️⃣ 연관된 이슈
📝 작업 내용
요약
새로운 API 엔드포인트
1. 북마크 생성
Request Body:
{ "messageId": 1 }Response (200):
{ "code": 200, "message": "성공", "data": { "bookmarkId": 1, "content": "메시지 내용", "type": "USER | ASSISTANT", "timestamp": "2026-01-09T16:13:45.512847" } }2. 북마크 삭제 (다건)
Request Body:
{ "bookmarkIdList": [1, 2, 3] }Response (200):
{ "code": 200, "message": "성공", "data": null }3. 북마크 리스트 조회
Response (200):
{ "code": 200, "message": "성공", "data": { "list": [ { "bookmarkId": 1, "content": "메시지 내용", "type": "USER | ASSISTANT", "timestamp": "2026-01-09T12:00:00" } ], "totalCount": 15 } }4. 북마크 기반 메시지 조회
북마크된 메시지 위치로 이동하기 위한 메시지 목록을 조회합니다.
Query Parameters:
Response (200):
{ "code": 200, "message": "성공", "data": { "targetMessageId": 5, "size": 10, "page": 0, "messages": [ { "messageId": 1, "content": "메시지 내용", "senderType": "USER | AI", "createdAt": "2026-01-09T12:00:00", "isSaved": true } ] } }기존 API 변경사항
채팅 메시지 조회 API
기존
isSaved필드가 사용자별 북마크 여부를 반환하도록 변경되었습니다.해당 API:
GET /chatrooms/current/messagesGET /chatrooms/{chatRoomId}/messages새로운 에러 코드
인증
모든 북마크 API는 JWT 토큰 인증이 필요합니다.