-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: validation exceptionHandler 추가
- Loading branch information
Showing
11 changed files
with
68 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
server/api/src/main/kotlin/com/kw/api/common/exception/CustomExceptionHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
server/api/src/main/kotlin/com/kw/api/domain/bundle/dto/request/BundleCreateRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
server/api/src/main/kotlin/com/kw/api/domain/bundle/dto/request/BundleQuestionAddRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
package com.kw.api.domain.bundle.dto.request | ||
|
||
data class BundleQuestionAddRequest(val questionIds: List<Long>) | ||
import jakarta.validation.constraints.Size | ||
|
||
data class BundleQuestionAddRequest( | ||
@field:Size(min = 1, message = "추가할 질문을 선택해 주세요.") | ||
val questionIds: List<Long> | ||
) |
3 changes: 0 additions & 3 deletions
3
.../main/kotlin/com/kw/api/domain/bundle/dto/request/BundleQuestionOrderListUpdateRequest.kt
This file was deleted.
Oops, something went wrong.
7 changes: 6 additions & 1 deletion
7
...r/api/src/main/kotlin/com/kw/api/domain/bundle/dto/request/BundleQuestionRemoveRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
package com.kw.api.domain.bundle.dto.request | ||
|
||
data class BundleQuestionRemoveRequest(val questionIds: List<Long>) | ||
import jakarta.validation.constraints.Size | ||
|
||
data class BundleQuestionRemoveRequest( | ||
@field:Size(min = 1, message = "삭제할 질문을 선택해 주세요.") | ||
val questionIds: List<Long> | ||
) |
8 changes: 0 additions & 8 deletions
8
server/api/src/main/kotlin/com/kw/api/domain/bundle/dto/request/BundleUpdateRequest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
package com.kw.api.domain.bundle.dto.request | ||
|
||
import jakarta.validation.constraints.Max | ||
import jakarta.validation.constraints.NotBlank | ||
|
||
data class BundleUpdateRequest( | ||
@NotBlank(message = "이름은 필수입니다.") | ||
val name: String?, | ||
|
||
@NotBlank(message = "공개 범위 설정은 필수입니다.") | ||
val shareType: String?, | ||
|
||
@Max(value = 3, message = "태그는 최대 3개까지 지정 가능합니다.") | ||
val tagIds: List<Long>? | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
server/api/src/main/kotlin/com/kw/api/domain/question/dto/request/QuestionAnswerRequest.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters