This repository has been archived by the owner on Jul 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BE] fix: 클라이언트 요청 오류에 대한 예외 처리 기능 추가 (#176)
* fix: 클라이언트 요청 오류에 대한 예외 처리 기능 추가 Co-authored-by: ingpyo <[email protected]> * refactor: PathVariable에 Valid검증하는 로직 제거 Co-authored-by: ingpyo <[email protected]> --------- Co-authored-by: echo724 <[email protected]>
- Loading branch information
Showing
6 changed files
with
97 additions
and
6 deletions.
There are no files selected for viewing
7 changes: 6 additions & 1 deletion
7
...end/src/main/java/org/donggle/backend/application/service/request/CategoryAddRequest.java
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,4 +1,9 @@ | ||
package org.donggle.backend.application.service.request; | ||
|
||
public record CategoryAddRequest(String categoryName) { | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
public record CategoryAddRequest( | ||
@NotNull(message = "카테고리 이름을 입력해주세요.") | ||
String categoryName | ||
) { | ||
} |
8 changes: 7 additions & 1 deletion
8
backend/src/main/java/org/donggle/backend/application/service/request/PublishRequest.java
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,6 +1,12 @@ | ||
package org.donggle.backend.application.service.request; | ||
|
||
import jakarta.validation.constraints.NotNull; | ||
|
||
import java.util.List; | ||
|
||
public record PublishRequest(String publishTo, List<String> tags) { | ||
public record PublishRequest( | ||
@NotNull(message = "블로그를 선택해주세요.") | ||
String publishTo, | ||
List<String> tags | ||
) { | ||
} |
6 changes: 5 additions & 1 deletion
6
...d/src/main/java/org/donggle/backend/application/service/request/WritingModifyRequest.java
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,4 +1,8 @@ | ||
package org.donggle.backend.application.service.request; | ||
|
||
public record WritingModifyRequest(String title, Long targetCategoryId, Long nextWritingId) { | ||
public record WritingModifyRequest( | ||
String title, | ||
Long targetCategoryId, | ||
Long nextWritingId | ||
) { | ||
} |
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
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