-
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: Match API 엔드포인트 경로 변경 - /matches/{matchId}/result -> /matches/result로 변경 - 요청 파라미터를 teamId에서 teamType으로 변경 * refactor: MatchService 파라미터 변경 - 파라미터 teamType으로 변경 - 캐시 키 형식 변경 * feat: teamType 사용 쿼리 메소드 추가 * chore: 사용하지 않는 메서드 제거 * chore: 불필요한 예외 처리 삭제 * docs: Swagger 업데이트 * refactor: getMatchedPartnerInformation API에서 불필요한 preference 정보 제거 - 책임 분리를 위해 새로운 DTO 생성 - ArrayList 변환 로직에서 preference 변환 제거 * feat: 매칭 API 시즌 파라미터 추가 * feat: 필수 파라미터 누락시 에러 처리 추가 * refactor: 매칭 결과 조회 성능 개선 * chore: unless 옵션 삭제 * fix: 미결제 팀원이 있는 경우에도 신청으로 처리되는 문제 수정 * docs: Swagger 업데이트 * fix: Redis 캐시 직렬화 오류 수정 - Entity의 Lazy Loading된 interest 컬렉션을 DTO 변환 시 즉시 초기화하도록 수정 * docs: Swagger 문서 수정 * refactor: 캐시 키 구조 개선 * chore: 사용하지 않는 DTO 삭제 * Merge branch 'main' into refactor/match-api-endpoints
- Loading branch information
Showing
18 changed files
with
212 additions
and
291 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
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
34 changes: 34 additions & 0 deletions
34
src/main/kotlin/uoslife/servermeeting/match/dto/response/MatchInfoResponse.kt
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,34 @@ | ||
package uoslife.servermeeting.match.dto.response | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import uoslife.servermeeting.meetingteam.dto.response.UserCardProfile | ||
import uoslife.servermeeting.user.entity.enums.GenderType | ||
|
||
data class MatchInfoResponse( | ||
@Schema(description = "매칭 성공 여부") val isMatched: Boolean, | ||
@Schema(description = "상대 팀 정보", nullable = true) val partnerTeam: PartnerTeamInfo? | ||
) { | ||
data class PartnerTeamInfo( | ||
@Schema(description = "팀 이름 (3대3)") val teamName: String?, | ||
@Schema(description = "데이트 코스 (1대1)") val course: String?, | ||
@Schema(description = "성별") val gender: GenderType, | ||
@Schema(description = "팀원 프로필 목록") val userProfiles: List<UserCardProfile> | ||
) | ||
|
||
companion object { | ||
fun toMatchInfoResponse( | ||
response: MatchedMeetingTeamInformationGetResponse | ||
): MatchInfoResponse { | ||
return MatchInfoResponse( | ||
isMatched = true, | ||
partnerTeam = | ||
PartnerTeamInfo( | ||
teamName = response.teamName, | ||
course = response.course, | ||
gender = response.gender, | ||
userProfiles = response.userProfiles!! | ||
) | ||
) | ||
} | ||
} | ||
} |
Oops, something went wrong.