fix : **Comment** Class Typo fix

This commit is contained in:
kms
2022-11-05 17:54:21 +09:00
parent 9b05b1e67d
commit 7d8761934b
3 changed files with 4 additions and 6 deletions

View File

@@ -2,11 +2,9 @@ package com.io.realworld.domain.aggregate.article.dto;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.io.realworld.domain.aggregate.profile.dto.ProfileResponse;
import lombok.Builder;
import lombok.Getter;
import java.time.LocalDateTime;
import java.time.ZonedDateTime;
import java.util.List;

View File

@@ -14,8 +14,8 @@ import java.time.ZonedDateTime;
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.WRAPPER_OBJECT)
public class CommentResponse {
private Long id;
private ZonedDateTime createAt;
private ZonedDateTime updateAt;
private ZonedDateTime createdAt;
private ZonedDateTime updatedAt;
private String body;
private Author author;

View File

@@ -59,8 +59,8 @@ public class CommentServiceImpl implements CommentService {
return CommentResponse.builder()
.id(comment.getId())
.createAt(comment.getCreatedDate())
.updateAt(comment.getModifiedDate())
.createdAt(comment.getCreatedDate())
.updatedAt(comment.getModifiedDate())
.body(comment.getBody())
.author(CommentResponse.Author.builder()
.username(profile.getUsername())