From 8446bc046a37eb2c6ab97418188b72f9542ed7b3 Mon Sep 17 00:00:00 2001 From: "2jin2.1031" <2jin2.1031@gmail.com> Date: Sun, 22 Dec 2024 21:59:21 +0900 Subject: [PATCH] refactor: createDate -> createdDate --- .../example/backend/board/domain/dto/BoardResDto.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/backend/src/main/java/org/example/backend/board/domain/dto/BoardResDto.java b/backend/src/main/java/org/example/backend/board/domain/dto/BoardResDto.java index d9610216..e3caa22d 100644 --- a/backend/src/main/java/org/example/backend/board/domain/dto/BoardResDto.java +++ b/backend/src/main/java/org/example/backend/board/domain/dto/BoardResDto.java @@ -1,6 +1,5 @@ package org.example.backend.board.domain.dto; -import java.time.LocalDateTime; import java.util.List; import lombok.AccessLevel; import lombok.Builder; @@ -17,19 +16,19 @@ public class BoardResDto { private String content; private String writer; private List fileList; - private String createDate; + private String createdDate; private int viewCount; private String category; @Builder private BoardResDto(Long id, String title, String content, String writer, - List fileList, String createDate, int viewCount, String category) { + List fileList, String createdDate, int viewCount, String category) { this.id = id; this.title = title; this.content = content; this.writer = writer; this.fileList = fileList; - this.createDate = createDate; + this.createdDate = createdDate; this.viewCount = viewCount; this.category = category; } @@ -41,7 +40,7 @@ public static BoardResDto of(Board board) { .content(board.getContent()) .writer(board.getWriter()) .fileList(board.getFileList()) - .createDate(TimeParsingUtils.toRelativeTimeFormat(board.getCreatedDate())) + .createdDate(TimeParsingUtils.toRelativeTimeFormat(board.getCreatedDate())) .viewCount(board.getViewCount()) .category(board.getCategory().name()) .build();