fix : **Comment** Class Typo fix
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user