Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public ChildProblem from(ChildProblemUpdateRequest request) {

ChildProblem.ChildProblemBuilder childProblem = ChildProblem.builder();

childProblem.id( request.id() );
childProblem.id( request.childProblemId() );
childProblem.imageUrl( request.imageUrl() );
childProblem.answerType( request.answerType() );
childProblem.answer( request.answer() );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.util.Set;

public record ChildProblemUpdateRequest(
Long id,
Long childProblemId,
String imageUrl,
AnswerType answerType,
String answer,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.moplus.moplus_server.domain.problem.dto.response;

import jakarta.validation.constraints.NotNull;

public record PresignedUrlResponse(
@NotNull(message = "사전 서명된 URL은 필수입니다")
String presignedUrl
) {
public static PresignedUrlResponse of(String presignedUrl) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
@Getter
@NoArgsConstructor
public class ProblemSearchGetResponse {
private Long id;
@NotNull(message = "문항 ID는 필수입니다")
private Long id;
@NotNull(message = "문항 custom ID는 필수입니다")
private String problemCustomId;
private String memo;
private String mainProblemImageUrl;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.moplus.moplus_server.global.response;

import jakarta.validation.constraints.NotNull;

public record IdResponse(
@NotNull(message = "ID는 필수입니다")
Long id
) {
}
Loading