Skip to content

Commit

Permalink
fix: createdAt 정보 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
DongGeon0908 committed Apr 6, 2024
1 parent 83b0ff8 commit 030060c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
Expand All @@ -14,6 +15,7 @@ public class ItemDetailResponseDto {
private BigDecimal longitude;
private String address;
private List<ItemDetailCommentDto> commentList;
private LocalDateTime createdAt;

public ItemDetailResponseDto(Item item, List<ItemDetailCommentDto> itemCommentList) {
this.ItemId = item.getId();
Expand All @@ -22,5 +24,6 @@ public ItemDetailResponseDto(Item item, List<ItemDetailCommentDto> itemCommentLi
this.longitude = item.getLongitude();
this.address = item.getAddress();
this.commentList = itemCommentList;
this.createdAt = item.getCreatedAt();
}
}

0 comments on commit 030060c

Please sign in to comment.