diff --git a/src/main/java/com/gongjakso/server/domain/apply/dto/response/ApplyRes.java b/src/main/java/com/gongjakso/server/domain/apply/dto/response/ApplyRes.java index c5c5b4aa..e122f468 100644 --- a/src/main/java/com/gongjakso/server/domain/apply/dto/response/ApplyRes.java +++ b/src/main/java/com/gongjakso/server/domain/apply/dto/response/ApplyRes.java @@ -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, @@ -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) diff --git a/src/main/java/com/gongjakso/server/domain/apply/dto/response/SimpleApplyRes.java b/src/main/java/com/gongjakso/server/domain/apply/dto/response/SimpleApplyRes.java index 2d955d26..b42cdc9f 100644 --- a/src/main/java/com/gongjakso/server/domain/apply/dto/response/SimpleApplyRes.java +++ b/src/main/java/com/gongjakso/server/domain/apply/dto/response/SimpleApplyRes.java @@ -18,8 +18,8 @@ public record SimpleApplyRes( Long teamId, @NotNull - Long memberId, - String memberName, + Long applicantId, + String applicantName, Long portfolioId, String portfolioName, String status, @@ -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())