feat: Ask Chat 남은 메시지 수 응답 보강 - #218
Merged
Merged
Conversation
AskChatQuestionSendResponse에 remainingMessageCount를 추가하고, 답변 생성 성공 시 차감 이후 값과 실패 시 환불 이후 값을 반환하도록 개선
GET /ask-chat/turns/remaining에서 remainingMessageCount만 조회할 수 있도록 응답 DTO와 서비스/컨트롤러 계약을 추가
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📝 요약(Summary)
주요 변경사항
API 응답 계약
POST /ask-chat/sessions응답에remainingMessageCount추가POST /ask-chat/messages응답에remainingMessageCount추가남은 메시지 수 조회 API
GET /ask-chat/turns/remaining추가remainingMessageCount만 반환서비스 로직
AskChatMessageCommandService에서 답변 생성 성공/실패 처리 이후 Ask Chat 지갑을 재조회해 최종 잔여 횟수 반환AskChatSessionService.getRemainingMessageCount()추가테스트
remainingMessageCount검증remainingMessageCount검증🔗 Related Issue
💬 공유사항
✅ PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.