Skip to content

Commit 6247fa2

Browse files
committed
refactor: 퀴즈 생성중에 유사도검색에 걸리면, under_review로 응답한다
1 parent fe6dfc3 commit 6247fa2

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/main/kotlin/org/gitanimals/quiz/app/CreateQuizFacade.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class CreateQuizFacade(
105105
)
106106
)
107107

108-
return CreateQuizResponse.fail(
108+
return CreateQuizResponse.underReview(
109109
point = CREATE_QUIZ_PRICE,
110110
message = CREATE_QUIZ_SIMILARITY_CHECK_MESSAGE
111111
)

src/main/kotlin/org/gitanimals/quiz/app/response/CreateQuizResponse.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,13 @@ data class CreateQuizResponse(
2222
message = message,
2323
)
2424
}
25+
26+
fun underReview(point: Long, message: String): CreateQuizResponse {
27+
return CreateQuizResponse(
28+
result = "UNDER_REVIEW",
29+
point = point,
30+
message = message,
31+
)
32+
}
2533
}
2634
}

0 commit comments

Comments
 (0)