Skip to content

Commit 73abe3c

Browse files
committed
[EA3-167] refactor: 게시글 조회 생성일 LocalDateTime 변경
1 parent 5147c70 commit 73abe3c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/main/java/grep/neogulcoder/domain/studypost/controller/dto/response/FreePostInfo.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import io.swagger.v3.oas.annotations.media.Schema;
66
import lombok.Getter;
77

8-
import java.time.LocalDate;
98
import java.time.LocalDateTime;
109

1110
@Getter
@@ -21,13 +20,13 @@ public class FreePostInfo {
2120
private String title;
2221

2322
@Schema(example = "2025-07-21", description = "생성일")
24-
private LocalDate createdAt;
23+
private LocalDateTime createdAt;
2524

2625
@QueryProjection
2726
public FreePostInfo(long postId, Category category, String title, LocalDateTime createdAt) {
2827
this.postId = postId;
2928
this.category = category.getKorean();
3029
this.title = title;
31-
this.createdAt = createdAt.toLocalDate();
30+
this.createdAt = createdAt;
3231
}
3332
}

src/main/java/grep/neogulcoder/domain/studypost/controller/dto/response/NoticePostInfo.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import io.swagger.v3.oas.annotations.media.Schema;
66
import lombok.Getter;
77

8-
import java.time.LocalDate;
98
import java.time.LocalDateTime;
109

1110
@Getter
@@ -21,13 +20,13 @@ public class NoticePostInfo {
2120
private String title;
2221

2322
@Schema(example = "2025-07-21", description = "생성일")
24-
private LocalDate createdAt;
23+
private LocalDateTime createdAt;
2524

2625
@QueryProjection
2726
public NoticePostInfo(long postId, Category category, String title, LocalDateTime createdAt) {
2827
this.postId = postId;
2928
this.category = category.getKorean();
3029
this.title = title;
31-
this.createdAt = createdAt.toLocalDate();
30+
this.createdAt = createdAt;
3231
}
3332
}

0 commit comments

Comments
 (0)