-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from backendoori/feat-post-put-delete
🚀 게시글 수정/삭제 기능 구현
- Loading branch information
Showing
25 changed files
with
1,107 additions
and
191 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
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
11 changes: 11 additions & 0 deletions
11
src/main/java/com/backendoori/ootw/exception/PermissionException.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.backendoori.ootw.exception; | ||
|
||
public class PermissionException extends RuntimeException { | ||
|
||
public static final String DEFAULT_MESSAGE = "요청에 대한 권한이 없습니다."; | ||
|
||
public PermissionException() { | ||
super(DEFAULT_MESSAGE); | ||
} | ||
|
||
} |
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
2 changes: 1 addition & 1 deletion
2
...ndoori/ootw/post/dto/PostSaveRequest.java → ...otw/post/dto/request/PostSaveRequest.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
21 changes: 21 additions & 0 deletions
21
src/main/java/com/backendoori/ootw/post/dto/request/PostUpdateRequest.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.backendoori.ootw.post.dto.request; | ||
|
||
import static com.backendoori.ootw.post.validation.Message.BLANK_POST_CONTENT; | ||
import static com.backendoori.ootw.post.validation.Message.BLANK_POST_TITLE; | ||
import static com.backendoori.ootw.post.validation.Message.INVALID_POST_CONTENT; | ||
import static com.backendoori.ootw.post.validation.Message.INVALID_POST_TITLE; | ||
|
||
import jakarta.validation.constraints.NotBlank; | ||
import jakarta.validation.constraints.Size; | ||
|
||
public record PostUpdateRequest( | ||
@NotBlank(message = BLANK_POST_TITLE) | ||
@Size(max = 30, message = INVALID_POST_TITLE) | ||
String title, | ||
|
||
@NotBlank(message = BLANK_POST_CONTENT) | ||
@Size(max = 500, message = INVALID_POST_CONTENT) | ||
String content | ||
) { | ||
|
||
} |
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
Oops, something went wrong.