Skip to content

Commit

Permalink
Refactor: 홍보 게시글 응답 값에 clubCategory 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
goalSetter09 committed Aug 22, 2024
1 parent 286f214 commit 78d8a3d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.cotato.squadus.api.recruit.dto;

import com.cotato.squadus.domain.club.common.entity.Region;
import com.cotato.squadus.domain.club.common.enums.ClubCategory;
import com.cotato.squadus.domain.club.common.enums.ClubTier;
import com.cotato.squadus.domain.club.common.enums.SportsCategory;
import com.cotato.squadus.domain.club.recruit.entity.RecruitingPost;
Expand All @@ -17,6 +18,7 @@ public record RecruitingPostResponse(
LocalDate startDate,
LocalDate endDate,
SportsCategory sportsCategory,
ClubCategory clubCategory,
Region region,
ClubTier clubTier,
List<String> tags
Expand All @@ -32,6 +34,7 @@ public static RecruitingPostResponse from(RecruitingPost recruitingPost) {
recruitingPost.getStartDate(),
recruitingPost.getEndDate(),
recruitingPost.getClub().getSportsCategory(),
recruitingPost.getClub().getClubCategory(),
recruitingPost.getClub().getRegion(),
recruitingPost.getClub().getClubTier(),
recruitingPost.getClub().getTags()
Expand Down

0 comments on commit 78d8a3d

Please sign in to comment.