@@ -231,23 +231,32 @@ private ChatResponseDto generateQARecommendation(ChatRequestDto requestDto) {
231231 // 4. AI를 통해 추천 메시지 생성
232232 String recommendationMessage = generateRecommendationMessage (userQuestion , recommendations );
233233
234- // 5. StepRecommendationResponseDto 생성
234+ // 5. RESTART 옵션 추가
235+ List <StepRecommendationResponseDto .StepOption > restartOption = List .of (
236+ new StepRecommendationResponseDto .StepOption (
237+ "RESTART" ,
238+ "다시 시작하기" ,
239+ null
240+ )
241+ );
242+
243+ // 6. StepRecommendationResponseDto 생성
235244 StepRecommendationResponseDto stepData = new StepRecommendationResponseDto (
236245 0 , // 질문형은 step 0
237246 recommendationMessage ,
238- null ,
247+ restartOption , // RESTART 옵션 추가
239248 recommendations ,
240249 true
241250 );
242251
243- // 6 . 봇 응답 저장
252+ // 7 . 봇 응답 저장
244253 ChatConversation savedResponse = saveBotResponse (
245254 requestDto .getUserId (),
246255 recommendationMessage ,
247256 stepData
248257 );
249258
250- // 7 . ChatResponseDto 반환
259+ // 8 . ChatResponseDto 반환
251260 return ChatResponseDto .builder ()
252261 .id (savedResponse .getId ())
253262 .userId (requestDto .getUserId ())
@@ -953,10 +962,19 @@ private StepRecommendationResponseDto getFinalRecommendationsWithMessage(
953962 "칵테일의 자세한 정보는 '상세보기'를 클릭해서 확인할 수 있어요.\n " +
954963 "마음에 드는 칵테일은 '킵' 버튼을 눌러 나만의 Bar에 저장해보세요!" ;
955964
965+ // RESTART 옵션 추가
966+ List <StepRecommendationResponseDto .StepOption > restartOption = List .of (
967+ new StepRecommendationResponseDto .StepOption (
968+ "RESTART" ,
969+ "다시 시작하기" ,
970+ null
971+ )
972+ );
973+
956974 return new StepRecommendationResponseDto (
957975 4 ,
958976 stepTitle ,
959- null ,
977+ restartOption , // RESTART 옵션 추가
960978 recommendations ,
961979 true
962980 );
@@ -1001,10 +1019,19 @@ private StepRecommendationResponseDto getFinalRecommendationsForNonAlcoholic(
10011019 "칵테일의 자세한 정보는 '상세보기'를 클릭해서 확인할 수 있어요.\n " +
10021020 "마음에 드는 칵테일은 '킵' 버튼을 눌러 나만의 Bar에 저장해보세요!" ;
10031021
1022+ // RESTART 옵션 추가
1023+ List <StepRecommendationResponseDto .StepOption > restartOption = List .of (
1024+ new StepRecommendationResponseDto .StepOption (
1025+ "RESTART" ,
1026+ "다시 시작하기" ,
1027+ null
1028+ )
1029+ );
1030+
10041031 return new StepRecommendationResponseDto (
10051032 4 ,
10061033 stepTitle ,
1007- null ,
1034+ restartOption , // RESTART 옵션 추가
10081035 recommendations ,
10091036 true
10101037 );
0 commit comments