diff --git a/backend/src/main/java/com/votogether/domain/post/dto/request/PostCreateRequest.java b/backend/src/main/java/com/votogether/domain/post/dto/request/PostCreateRequest.java index f764a2194..574286ce2 100644 --- a/backend/src/main/java/com/votogether/domain/post/dto/request/PostCreateRequest.java +++ b/backend/src/main/java/com/votogether/domain/post/dto/request/PostCreateRequest.java @@ -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개 이상 등록해야 합니다.") diff --git a/backend/src/main/java/com/votogether/domain/post/dto/request/PostOptionCreateRequest.java b/backend/src/main/java/com/votogether/domain/post/dto/request/PostOptionCreateRequest.java index fe9141930..603f4f97f 100644 --- a/backend/src/main/java/com/votogether/domain/post/dto/request/PostOptionCreateRequest.java +++ b/backend/src/main/java/com/votogether/domain/post/dto/request/PostOptionCreateRequest.java @@ -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 ) { } diff --git a/backend/src/test/java/com/votogether/domain/post/service/PostServiceTest.java b/backend/src/test/java/com/votogether/domain/post/service/PostServiceTest.java index 4cf53b098..effedc8a5 100644 --- a/backend/src/test/java/com/votogether/domain/post/service/PostServiceTest.java +++ b/backend/src/test/java/com/votogether/domain/post/service/PostServiceTest.java @@ -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)) @@ -416,13 +414,11 @@ void getAllPostBySortTypeAndClosingType() { add( PostOptionCreateRequest.builder() .content("option1") - .imageUrl("") .build() ); add( PostOptionCreateRequest.builder() .content("option2") - .imageUrl("") .build() ); } @@ -455,7 +451,6 @@ void getAllPostBySortTypeAndClosingType() { options.add( PostOptionCreateRequest.builder() .content("option3") - .imageUrl("") .build() ); }