Skip to content

Commit

Permalink
[refactor/Inhabas#293]공모전 게시판 단일조회시 writerId 추가
Browse files Browse the repository at this point in the history
[refactor/Inhabas#293]공모전 게시판 단일조회시 writerId 추가
  • Loading branch information
whitem4rk authored Apr 29, 2024
2 parents 6458871 + 59775af commit 440169c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public class ContestBoardDetailDto {

@NotBlank private String content;

@NotNull private Long writerId;

@NotBlank private String writerName;

@NotBlank private String association;
Expand Down Expand Up @@ -66,6 +68,7 @@ public ContestBoardDetailDto(
Long contestFieldId,
String title,
String content,
Long writerId,
String writerName,
String association,
String topic,
Expand All @@ -80,6 +83,7 @@ public ContestBoardDetailDto(
this.contestFieldId = contestFieldId;
this.title = title;
this.content = content;
this.writerId = writerId;
this.writerName = writerName;
this.association = association;
this.topic = topic;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class NormalBoardDetailDto {
@NotBlank private String title;

@NotBlank private String content;

@NotNull private Long writerId;

@NotBlank private String writerName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public void createContestBoardDetailDto() {
.contestFieldId(1L)
.title("테스트 제목")
.content("테스트 내용")
.writerId(1L)
.writerName("송민석")
.association("(주) 아이바스")
.topic("테스트 주제")
Expand Down Expand Up @@ -75,6 +76,7 @@ public void nullTitleTest() {
.contestFieldId(1L)
// title 필드 null
.content("테스트 내용")
.writerId(1L)
.writerName("송민석")
.association("(주) 아이바스")
.topic("테스트 주제")
Expand Down

0 comments on commit 440169c

Please sign in to comment.