Skip to content

Commit

Permalink
Reveal ResponseDTO 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
KangMinJun committed May 17, 2024
1 parent c0b7ea5 commit ce5961d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,14 @@ public static SimpleRevealDto toSimpleRevealDto(Reveal reveal) {
return SimpleRevealDto.builder()
.pickEmotion(String.valueOf(reveal.getPickEmotion()))
.resultEmotion(String.valueOf(reveal.getResultEmotion()))
.diaryContent(reveal.getDiaryContent())
.id(reveal.getId())
.date(reveal.getDate())
.build();
}

public static DetailRevealDto toDetailRevealDto(Reveal reveal) {
return DetailRevealDto.builder()
.id(reveal.getId())
.diaryContent(reveal.getDiaryContent())
.date(reveal.getDate())
.pickEmotion(String.valueOf(reveal.getPickEmotion()))
.resultEmotion(String.valueOf(reveal.getResultEmotion()))
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ public static class SimpleRevealDto {
@Schema(description = "결과로 나온 감정 상태(RED, YELLOW, BLUE)")
private String resultEmotion;

@Schema(description = "나의 감정 들여다보기 내용")
private String diaryContent;
@Schema(description = "나의 감정 들여다보기 id")
private Long id;

@Schema(description = "나의 감정 들여다보기 작성일")
private Integer date;
Expand All @@ -46,19 +46,7 @@ public static class SimpleRevealDto {
@AllArgsConstructor
@NoArgsConstructor
public static class DetailRevealDto {
@Schema(description = "나의 감정 들여다보기 id")
private Long id;

@Schema(description = "나의 감정 들여다보기 내용")
private String diaryContent;

@Schema(description = "나의 감정 들여다보기 작성일")
private Integer date;

@Schema(description = "선택한 감정 상태(SUNNY, CLOUDY, RAINY)")
private String pickEmotion;

@Schema(description = "결과로 나온 감정 상태(RED, YELLOW, BLUE)")
private String resultEmotion;
}
}

0 comments on commit ce5961d

Please sign in to comment.