Skip to content

Commit

Permalink
build complate
Browse files Browse the repository at this point in the history
  • Loading branch information
lgsok00 committed Oct 10, 2023
1 parent 3ea011f commit a22cf17
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/HookKiller/server/board/dto/ArticleDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,23 @@
import lombok.Getter;
import org.joda.time.DateTime;

import java.sql.Timestamp;

@Getter
@Builder
public class ArticleDto {

private Long articleId;
private String title;
private DateTime createdAt;
private Timestamp createdAt;
private Long createdUser;
private int likeCount;

public static ArticleDto of(Article article, ArticleContent articleContent) {
return ArticleDto.builder()
.articleId(article.getId())
.title(articleContent.getTitle())
.createdAt(article.getCreatedAt())
.createdAt(article.getCreateAt())
.createdUser(article.getCreatedUser())
.likeCount(article.getLikeCount())
.build();
Expand Down

0 comments on commit a22cf17

Please sign in to comment.