Skip to content
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

링크 데이터 추가로 내려주기 #43

Merged
merged 1 commit into from
Aug 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
import com.nexters.moyeomoyeo.team_building.domain.entity.User;
import com.nexters.moyeomoyeo.team_building.domain.entity.UserChoice;
import io.swagger.v3.oas.annotations.media.Schema;

import java.util.List;
import java.util.Objects;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
Expand All @@ -29,6 +31,7 @@ public class UserInfo {
private List<String> choices;
@Schema(description = "최종 빌딩 된 팀")
private String joinedTeamUuid;
@Schema(description = "팀원 추가 링크")
private String profileLink;
@Builder.Default
@Schema(description = "현재 팀 빌딩이 완료된 상태인지 여부")
Expand All @@ -47,6 +50,7 @@ public static UserInfo makeUserInfo(User user) {
.position(user.getPosition())
.choices(choices)
.joinedTeamUuid(joinedTeamUuid)
.profileLink(user.getProfileLink())
.isSelectedTeam(isSelectedTeam(choices, joinedTeamUuid))
.build();
}
Expand Down