-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 공고 조회 API에 페이징 기능 추가 - Pageable을 활용한 페이징 처리 구현 - `@PageableDefault`를 통해 기본 페이지 크기 설정 - DTO 수정 - HomeAnnouncementsResponseDto에 페이징 관련 필드 추가 (`totalPages`, `hasNext`) - Repository 수정 - 페이징 처리된 공고 데이터를 반환하도록 쿼리 수정 - `Page<Tuple>`를 활용한 페이징 로직 구현 - Service 로직 리팩토링 - 공통 메서드 분리 (`getUserById`, `createEmptyResponse` 등) - Color 값 및 스크랩 여부 처리 메서드 분리 (`isScrapped`, `determineColorValue`) - Swagger 수정 - API 문서에 페이징 파라미터 반영
- Loading branch information
1 parent
afb20cd
commit b7a83e4
Showing
7 changed files
with
86 additions
and
32 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
3 changes: 2 additions & 1 deletion
3
src/main/java/org/terning/terningserver/service/HomeService.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,8 +1,9 @@ | ||
package org.terning.terningserver.service; | ||
|
||
import org.springframework.data.domain.Pageable; | ||
import org.terning.terningserver.dto.user.response.HomeAnnouncementsResponseDto; | ||
|
||
public interface HomeService { | ||
|
||
HomeAnnouncementsResponseDto getAnnouncements(Long userId, String sortBy); | ||
HomeAnnouncementsResponseDto getAnnouncements(Long userId, String sortBy, 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