Skip to content

Commit

Permalink
#74 [refactor] : 공감 & 요약 반환 시, 질문도 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbang105 committed Jun 7, 2024
1 parent cdb27b5 commit 75c2c3c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public DiscoverPersonaDto.AnswerResponse getReactionAndSummary(String authorizat
createPersonaKeywords(discoverPersona);
}

return DiscoverPersonaDto.AnswerResponse.of(reaction, summary);
return DiscoverPersonaDto.AnswerResponse.of(discoverPersonaChatting.getQuestion(), reaction, summary);
}

// 카테고리별 채팅 내역을 반환하는 메서드
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ public static class AnswerRequest {
@JsonNaming(value = PropertyNamingStrategies.SnakeCaseStrategy.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
public static class AnswerResponse {
private String question;
private String reaction;
private String summary;

public static DiscoverPersonaDto.AnswerResponse of(String reaction, String summary) {
return DiscoverPersonaDto.AnswerResponse.builder()
public static DiscoverPersonaDto.AnswerResponse of(String question, String reaction, String summary) {
return AnswerResponse.builder()
.question(question)
.reaction(reaction)
.summary(summary)
.build();
Expand Down

0 comments on commit 75c2c3c

Please sign in to comment.