-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat : 공지, 랭킹 목록 조회 페이징 적용 및 잡다한 것들 #186
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
557bac1
feat : 전체 랭킹 조회 시 페이징 적용
rladmstn e02b445
feat : 공지 목록 조회 시 페이징 적용
rladmstn c2d131d
feat : 랭킹 목록 조회 시 페이징 적용 수정
rladmstn 3532825
feat : 공지 조회 시 작성자 프로필 이미지 데이터 추가
rladmstn 0b1c7e3
refactor : 그룹 생성 시 그룹 이미지 필드명 수정
rladmstn a54afec
Merge develop
rladmstn 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 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
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 |
---|---|---|
|
@@ -49,10 +49,10 @@ public class StudyGroupController { | |
@Operation(summary = "그룹 생성 API") | ||
public ResponseEntity<GroupCodeResponse> createGroup(@AuthedUser User user, | ||
@Valid @RequestPart CreateGroupRequest request, Errors errors, | ||
@RequestPart(required = false) MultipartFile profileImage) { | ||
@RequestPart(required = false) MultipartFile groupImage) { | ||
if (errors.hasErrors()) | ||
throw new RequestException("그룹 생성 요청이 올바르지 않습니다.", errors); | ||
GroupCodeResponse inviteCode = studyGroupService.createGroup(user, request, profileImage); | ||
GroupCodeResponse inviteCode = studyGroupService.createGroup(user, request, groupImage); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 앗 이부분은 제가 했어야한건데.. 감사함돵 ㅜ.ㅜ |
||
return ResponseEntity.ok().body(inviteCode); | ||
} | ||
|
||
|
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
6 changes: 3 additions & 3 deletions
6
src/main/java/com/gamzabat/algohub/feature/notice/repository/NoticeRepository.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,13 +1,13 @@ | ||
package com.gamzabat.algohub.feature.notice.repository; | ||
|
||
import java.util.List; | ||
|
||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
import com.gamzabat.algohub.feature.group.studygroup.domain.StudyGroup; | ||
import com.gamzabat.algohub.feature.notice.domain.Notice; | ||
|
||
public interface NoticeRepository extends JpaRepository<Notice, Long> { | ||
List<Notice> findAllByStudyGroup(StudyGroup studyGroup); | ||
Page<Notice> findAllByStudyGroup(StudyGroup studyGroup, Pageable pageable); | ||
|
||
} |
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
Oops, something went wrong.
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.
호옥시 이부분은 어디서 쓰나요..? 위에 페이징으로 받은 리스트가 있는데 다른 곳에서 쓰는게 있나요?
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.
회원이 탈퇴할 때 AOP를 사용해서 랭킹을 새로 갱신해야할 때가 있었습니다! 그 때 그룹 멤버들에 대해 페이징 없이 모든 리스트를 가져와야 해서 얘도 필요합니담
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.
아아 넹! 답변감사합니두!