diff --git a/src/main/java/com/daon/onjung/suggestion/application/dto/response/CreateCommentResponseDto.java b/src/main/java/com/daon/onjung/suggestion/application/dto/response/CreateCommentResponseDto.java index a7a59e8..2128fc4 100644 --- a/src/main/java/com/daon/onjung/suggestion/application/dto/response/CreateCommentResponseDto.java +++ b/src/main/java/com/daon/onjung/suggestion/application/dto/response/CreateCommentResponseDto.java @@ -78,14 +78,14 @@ public static class CommentInfoDto extends SelfValidating { @JsonProperty("content") private final String content; - @JsonProperty("posted_at") - private final String postedAt; + @JsonProperty("posted_ago") + private final String postedAgo; @Builder - public CommentInfoDto(Long id, String content, String postedAt) { + public CommentInfoDto(Long id, String content, String postedAgo) { this.id = id; this.content = content; - this.postedAt = postedAt; + this.postedAgo = postedAgo; this.validateSelf(); } @@ -94,7 +94,7 @@ public static CommentInfoDto fromEntity(Comment comment) { return CommentInfoDto.builder() .id(comment.getId()) .content(comment.getContent()) - .postedAt(DateTimeUtil.calculatePostedAgo(comment.getCreatedAt())) + .postedAgo(DateTimeUtil.calculatePostedAgo(comment.getCreatedAt())) .build(); } }