Skip to content

Commit

Permalink
Feat: CommentConverter 따로 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
yxhwxn committed Aug 7, 2024
1 parent 46c05a4 commit 2dba59d
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
package com.cmc.suppin.event.crawl.converter;

import com.cmc.suppin.event.crawl.domain.Comment;
import com.cmc.suppin.event.events.domain.Event;

public class CommentConverter {

public static Comment toCommentEntity(String author, String text, String time, String url, Event event) {
return Comment.builder()
.author(author)
.commentText(text)
.commentDate(time)
.url(url)
.event(event)
.build();
}
}

0 comments on commit 2dba59d

Please sign in to comment.