Skip to content

Commit

Permalink
feat: Add summary field (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahyun0326 committed Mar 17, 2024
1 parent ef061b6 commit 058c9c3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class PostsRequestDto {
private String content;
private List<String> tag;
private Long categoryId;
private String summary;

public Posts toEntity(Long uid) {
Date now = Date.from(Instant.now());
Expand All @@ -27,11 +28,13 @@ public Posts toEntity(Long uid) {
.userUid(uid)
.title(title)
.content(content)
.aiScript(summary)
.tag(tagString)
.createdAt(writeDatetime)
.commentCount(0)
.scrapCount(0)
.categoryId(categoryId)
.build();
}

}

0 comments on commit 058c9c3

Please sign in to comment.