Skip to content

Commit

Permalink
#6 - Feat: WriteForm DTO에 contentHtml(렌더링 결과) 필드 추가, 글 작성시 contentHtm…
Browse files Browse the repository at this point in the history
…l 도 저장하도록 수정
  • Loading branch information
ahah525 committed Oct 18, 2022
1 parent 4c3d1f7 commit a402d61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class WriteForm {
@NotEmpty
private String subject; // 제목
@NotEmpty
private String content; // 내용
private String content; // 마크다운 원문
private String contentHtml; // 렌더링 결과 HTML
private String keywords; // 해시태그
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public Post write(Member author, WriteForm writeForm) {
Post post = Post.builder()
.subject(writeForm.getSubject())
.content(writeForm.getContent())
.contentHtml(writeForm.getContentHtml())
.author(author)
.build();

Expand Down

0 comments on commit a402d61

Please sign in to comment.