Skip to content

Commit 6ba7a65

Browse files
authored
Merge pull request #66 from team-MoPlus/hotfix/#54
[fix/#54] 문항 변경 사항 반영
2 parents c1887de + 78ffa70 commit 6ba7a65

File tree

5 files changed

+10
-3
lines changed

5 files changed

+10
-3
lines changed

src/main/generated/com/moplus/moplus_server/domain/problem/service/mapper/ChildProblemMapperImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public ChildProblem from(ChildProblemUpdateRequest request) {
4343

4444
ChildProblem.ChildProblemBuilder childProblem = ChildProblem.builder();
4545

46-
childProblem.id( request.id() );
46+
childProblem.id( request.childProblemId() );
4747
childProblem.imageUrl( request.imageUrl() );
4848
childProblem.answerType( request.answerType() );
4949
childProblem.answer( request.answer() );

src/main/java/com/moplus/moplus_server/domain/problem/dto/request/ChildProblemUpdateRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import java.util.Set;
66

77
public record ChildProblemUpdateRequest(
8-
Long id,
8+
Long childProblemId,
99
String imageUrl,
1010
AnswerType answerType,
1111
String answer,

src/main/java/com/moplus/moplus_server/domain/problem/dto/response/PresignedUrlResponse.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package com.moplus.moplus_server.domain.problem.dto.response;
22

3+
import jakarta.validation.constraints.NotNull;
4+
35
public record PresignedUrlResponse(
6+
@NotNull(message = "사전 서명된 URL은 필수입니다")
47
String presignedUrl
58
) {
69
public static PresignedUrlResponse of(String presignedUrl) {

src/main/java/com/moplus/moplus_server/domain/problem/dto/response/ProblemSearchGetResponse.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
@Getter
99
@NoArgsConstructor
1010
public class ProblemSearchGetResponse {
11-
private Long id;
1211
@NotNull(message = "문항 ID는 필수입니다")
12+
private Long id;
13+
@NotNull(message = "문항 custom ID는 필수입니다")
1314
private String problemCustomId;
1415
private String memo;
1516
private String mainProblemImageUrl;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
package com.moplus.moplus_server.global.response;
22

3+
import jakarta.validation.constraints.NotNull;
4+
35
public record IdResponse(
6+
@NotNull(message = "ID는 필수입니다")
47
Long id
58
) {
69
}

0 commit comments

Comments
 (0)