-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(MeetingSearchRepository): 추천 모임 조회 메서드 구현 - 부연 설명 : 파라미터(meetingIds) 가 비어있을 경우, '지금 모집중인 모임' 반환 * docs(MeetingV2Api): 추천 모임 조회 API 스웨거 문서 작성 * feat(MeetingV2ServiceImpl): 추천 모임 조회 비즈니스 코드 구현 * feat(MeetingV2Controller): 추천 모임 조회 API 컨트롤러 및 Dto 구현 * fix(MeetingSearchRepository): NPE 문제 해결 * chore(MeetingSearchRepository): 삼항연산자 -> if 문으로 수정 * chore(MeetingV2GetRecommendDto): of -> from 변경
- Loading branch information
Showing
7 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
main/src/main/java/org/sopt/makers/crew/main/entity/meeting/MeetingSearchRepository.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,10 +1,14 @@ | ||
package org.sopt.makers.crew.main.entity.meeting; | ||
|
||
import java.util.List; | ||
|
||
import org.sopt.makers.crew.main.global.util.Time; | ||
import org.sopt.makers.crew.main.meeting.v2.dto.query.MeetingV2GetAllMeetingQueryDto; | ||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
|
||
public interface MeetingSearchRepository { | ||
Page<Meeting> findAllByQuery(MeetingV2GetAllMeetingQueryDto queryCommand, Pageable pageable, Time time); | ||
|
||
List<Meeting> findRecommendMeetings(List<Integer> meetingIds, Time time); | ||
} |
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
20 changes: 20 additions & 0 deletions
20
...main/java/org/sopt/makers/crew/main/meeting/v2/dto/response/MeetingV2GetRecommendDto.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,20 @@ | ||
package org.sopt.makers.crew.main.meeting.v2.dto.response; | ||
|
||
import java.util.List; | ||
|
||
import org.sopt.makers.crew.main.global.dto.MeetingResponseDto; | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import jakarta.validation.constraints.NotNull; | ||
|
||
@Schema(name = "MeetingV2GetRecommendDto", description = "추천 모임 목록 조회 응답 Dto") | ||
public record MeetingV2GetRecommendDto( | ||
@Schema(description = "모임 객체 목록", example = "") | ||
@NotNull | ||
List<MeetingResponseDto> meetings | ||
) { | ||
public static MeetingV2GetRecommendDto from(List<MeetingResponseDto> meetings) { | ||
return new MeetingV2GetRecommendDto(meetings); | ||
} | ||
} | ||
|
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