-
Notifications
You must be signed in to change notification settings - Fork 1
Feature/56 커뮤니티 게시글 수정 기능 #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
leebs0521
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다
|
|
||
| //when | ||
| ThrowableAssert.ThrowingCallable callable = () -> updateCommunityBoardService.updateCommunityBoard(dto, communityId, UUID.randomUUID(), null); | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ThrowingCallable 이거 좋은것 같아요.
when 에서 에러가 발생하는 동작을 이렇게 뺄수있군요..
src/test/java/com/somemore/community/service/command/UpdateCommunityBoardServiceTest.java
Show resolved
Hide resolved
|
"해당 게시글에 권한이 없습니다. " 라는 표현이 |
- command/query 패키지 삭제
|
m-a-king
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다!
| UNAUTHORIZED_COMMUNITY_BOARD("해당 게시글에 권한이 없습니다."), | ||
| NOT_EXISTS_LOCATION("존재하지 않는 위치 ID 입니다."), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| UNAUTHORIZED_COMMUNITY_BOARD("해당 게시글에 권한이 없습니다."), | |
| NOT_EXISTS_LOCATION("존재하지 않는 위치 ID 입니다."), | |
| NOT_FOUND("%s를 찾을 수 없습니다."), | |
| UNAUTHORIZED("%s에 대한 권한이 없습니다."), |
이렇게 사용하고 아래에서 메시지 게터에 도메인이나 맥락에 대해서 동적으로 파라미터를 사용하는 방법은 어떨까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
다 같이 얘기해보면 좋을 거 같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
넵
src/test/java/com/somemore/community/service/command/UpdateCommunityBoardServiceTest.java
Show resolved
Hide resolved
m-a-king
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ExceptionMessage를 "해당 게시글에 권한이 없습니다."로 해두었는데
"자신이 작성한 커뮤니티 게시글이 아닙니다."로 통일하는게 좋을까요?
--> 후자는 프론트에서 하면 좋을 것 같아요~



resolved :
📌 과제 설명
커뮤니티 게시글 수정 기능
👩💻 요구 사항과 구현 내용
커뮤니티 게시글 수정 기능 구현
✅ PR 포인트 & 궁금한 점
"자신이 작성한 커뮤니티 게시글이 아닙니다."로 통일하는게 좋을까요?