-
Notifications
You must be signed in to change notification settings - Fork 3
[refactor] Club 조회 및 검색 로직에 예외 처리 #331
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
403949f
refactor: getClubDetail 메서드 objectId 예외처리
Zepelown 90fd44a
refactor: RecruitmentStatus와 기존 다른 enum과 일관성 유지하도록 변경
Zepelown f7a396f
refactor: 검색에 예외 처리 추가
Zepelown 2bbad5c
fix: 자신이 소유한 클럽만 약력 수정할 수 있도록 변경
Zepelown f3d931a
fix: 자신이 소유한 클럽만 모집정보 수정할 수 있도록 변경
Zepelown 949f8e8
refactor: 기존 클럽 모집 정보 수정관련 변수 및 함수명이 모호했던 것을 변경
Zepelown 802de75
refactor: ObjectId 검증 로직 중복돼서 하나의 메서드로 분리
Zepelown File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
13 changes: 0 additions & 13 deletions
13
backend/src/main/java/moadong/club/payload/request/ClubDescriptionUpdateRequest.java
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
backend/src/main/java/moadong/club/payload/request/ClubRecruitmentInfoUpdateRequest.java
This file contains hidden or 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,13 @@ | ||
| package moadong.club.payload.request; | ||
|
|
||
| import java.time.LocalDateTime; | ||
|
|
||
| public record ClubRecruitmentInfoUpdateRequest( | ||
| String id, | ||
| LocalDateTime recruitmentStart, | ||
| LocalDateTime recruitmentEnd, | ||
| String recruitmentTarget, | ||
| String description | ||
| ) { | ||
|
|
||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
createClub에는 @currentuser가 제거되고 updateClubInfo에는 추가된 이유가 있을까요?
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.
createClub에서 user를 사용할 필요가 없다고 생각해서 제거했습니다. 클럽을 만들 때, 지금 접속한 유저의 정보는 필요하지 않기 때문입니다.
updateClubInfo에 생긴 이유는 자기가 소유한 클럽만 update할 수 있도록 제한을 두었습니다.