-
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.
Merge branch 'main' of https://github.com/uoslife/server-meeting into…
… fix/match
- Loading branch information
Showing
5 changed files
with
52 additions
and
13 deletions.
There are no files selected for viewing
3 changes: 1 addition & 2 deletions
3
src/main/kotlin/uoslife/servermeeting/match/dto/response/MatchInformationResponse.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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
package uoslife.servermeeting.match.dto.response | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import uoslife.servermeeting.meetingteam.dto.response.MeetingTeamInformationGetResponse | ||
|
||
class MatchInformationResponse( | ||
@Schema(description = "본인 이름", example = "호랑이") val myName: String, | ||
@Schema(description = "매칭된 상대 정보") | ||
val opponnentUserInformation: MeetingTeamInformationGetResponse | ||
val opponnentUserInformation: MatchedMeetingTeamInformationGetResponse | ||
) |
21 changes: 21 additions & 0 deletions
21
...tlin/uoslife/servermeeting/match/dto/response/MatchedMeetingTeamInformationGetResponse.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,21 @@ | ||
package uoslife.servermeeting.match.dto.response | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import jakarta.validation.constraints.NotNull | ||
import uoslife.servermeeting.meetingteam.dto.response.UserProfile | ||
import uoslife.servermeeting.meetingteam.entity.enums.TeamType | ||
import uoslife.servermeeting.user.entity.enums.GenderType | ||
|
||
data class MatchedMeetingTeamInformationGetResponse( | ||
@field:NotNull @Schema(description = "팀 타입", example = "SINGLE") val teamType: TeamType, | ||
@Schema(description = "팀 이름", example = "팀 이름(1:1인 경우 null)") val teamName: String?, | ||
@field:NotNull @Schema(description = "성별", example = "MALE") val gender: GenderType, | ||
@Schema(description = "팀에 속한 유저 정보") val teamUserList: List<UserProfile>?, | ||
@Schema(description = "질문 응답값") val information: MatchedInformation?, | ||
@Schema(description = "상대에게 전하는 메세지") val message: String? | ||
) | ||
|
||
data class MatchedInformation( | ||
val gender: GenderType? = null, | ||
val questions: List<Int>? = null, | ||
) |
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
7 changes: 6 additions & 1 deletion
7
src/main/kotlin/uoslife/servermeeting/meetingteam/entity/Information.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 |
---|---|---|
@@ -1,9 +1,14 @@ | ||
package uoslife.servermeeting.meetingteam.entity | ||
|
||
import java.io.Serializable | ||
import uoslife.servermeeting.match.dto.response.MatchedInformation | ||
import uoslife.servermeeting.user.entity.enums.GenderType | ||
|
||
data class Information( | ||
val gender: GenderType? = null, | ||
val questions: Map<Int, Int>? = null, | ||
) : Serializable | ||
) : Serializable { | ||
fun toMatchedInformation(): MatchedInformation { | ||
return MatchedInformation(gender = gender, questions = questions?.values?.toList()) | ||
} | ||
} |