Skip to content

Commit

Permalink
Merge pull request #251 from Gongjakso/feat/apply
Browse files Browse the repository at this point in the history
fix: applyRes 데이터 변경
  • Loading branch information
yumzen authored Sep 24, 2024
2 parents 76d1342 + 052f728 commit cd6b9c8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ public record ApplyRes(
Long teamId,

@NotNull
Long memberId,
Long applicantId,

@NotNull
String name,
String applicantName,

String phone,
String applicantPhone,

String major,
String applicantMajor,

@Nullable
Long portfolioId,
Expand Down Expand Up @@ -75,10 +75,10 @@ public static ApplyRes of(Apply apply) {
.id(apply.getId())
.teamId(apply.getTeam().getId())
.teamName(apply.getTeam().getTitle())
.memberId(apply.getMember().getId())
.name(apply.getMember().getName())
.phone(apply.getMember().getPhone())
.major(apply.getMember().getMajor())
.applicantId(apply.getMember().getId())
.applicantName(apply.getMember().getName())
.applicantPhone(apply.getMember().getPhone())
.applicantMajor(apply.getMember().getMajor())
.leaderName(apply.getTeam().getMember().getName())
.portfolioId(apply.getPortfolioInfo().getPortfolio() != null ? apply.getPortfolioInfo().getPortfolio().getId() : null)
.portfolioName(apply.getPortfolioInfo().getPortfolio() != null ? apply.getPortfolioInfo().getPortfolio().getPortfolioName() : null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public record SimpleApplyRes(
Long teamId,

@NotNull
Long memberId,
String memberName,
Long applicantId,
String applicantName,
Long portfolioId,
String portfolioName,
String status,
Expand All @@ -30,8 +30,8 @@ public static SimpleApplyRes of(Apply apply){
return SimpleApplyRes.builder()
.id(apply.getId())
.teamId(apply.getTeam().getId())
.memberId(apply.getMember().getId())
.memberName(apply.getMember().getName())
.applicantId(apply.getMember().getId())
.applicantName(apply.getMember().getName())
.portfolioId(apply.getPortfolioInfo().getPortfolio() != null ? apply.getPortfolioInfo().getPortfolio().getId() : null)
.portfolioName(apply.getPortfolioInfo().getPortfolio() != null ? apply.getPortfolioInfo().getPortfolio().getPortfolioName() : null)
.status(apply.getStatus().name())
Expand Down

0 comments on commit cd6b9c8

Please sign in to comment.