Skip to content

Commit

Permalink
refactor: (#172) 서버에서 필요없는 데이터 필드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdtls690 committed Aug 1, 2023
1 parent 8fe8fb6 commit 82abfdb
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ public record PostCreateRequest(
@Length(max = 1000, message = "내용은 최대 1000자까지 입력 가능합니다.")
String content,

@Schema(description = "게시글 내용의 이미지 URL", example = "imageUrl")
String imageUrl,

@Schema(description = "게시글의 여러 선택지")
@Valid
@NotNull(message = "선택지는 최소 2개 이상 등록해야 합니다.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ public record PostOptionCreateRequest(
@Schema(description = "선택지 내용", example = "content")
@NotBlank(message = "해당 선택지의 내용을 입력해주세요.")
@Length(max = 50, message = "선택지의 내용은 최대 50자까지 입력 가능합니다.")
String content,

@Schema(description = "선택지 이미지 URL", example = "imageUrl")
String imageUrl
String content
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,9 @@ void save() throws IOException {
.postOptions(List.of(
PostOptionCreateRequest.builder()
.content("option1")
.imageUrl("")
.build(),
PostOptionCreateRequest.builder()
.content("option2")
.imageUrl("")
.build()
))
.deadline(LocalDateTime.now().plusDays(2))
Expand Down Expand Up @@ -416,13 +414,11 @@ void getAllPostBySortTypeAndClosingType() {
add(
PostOptionCreateRequest.builder()
.content("option1")
.imageUrl("")
.build()
);
add(
PostOptionCreateRequest.builder()
.content("option2")
.imageUrl("")
.build()
);
}
Expand Down Expand Up @@ -455,7 +451,6 @@ void getAllPostBySortTypeAndClosingType() {
options.add(
PostOptionCreateRequest.builder()
.content("option3")
.imageUrl("")
.build()
);
}
Expand Down

0 comments on commit 82abfdb

Please sign in to comment.