We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86690a1 commit 3e20079Copy full SHA for 3e20079
src/main/java/dmu/dasom/api/domain/news/dto/NewsListResponseDto.java
@@ -22,6 +22,9 @@ public class NewsListResponseDto {
22
@Schema(description = "뉴스 제목", example = "제목")
23
private String title;
24
25
+ @Schema(description = "뉴스 내용", example = "내용")
26
+ private String content;
27
+
28
@Schema(description = "작성일", example = "2025-02-14T12:00:00")
29
private LocalDateTime createdAt;
30
src/main/java/dmu/dasom/api/domain/news/entity/NewsEntity.java
@@ -52,6 +52,7 @@ public NewsListResponseDto toListResponseDto(FileResponseDto file) {
52
return NewsListResponseDto.builder()
53
.id(this.id)
54
.title(this.title)
55
+ .content(this.content)
56
.createdAt(getCreatedAt())
57
.image(file)
58
.build();
0 commit comments