Skip to content

Commit

Permalink
[feat] #172 - 캐러셀 response에 필드 추가 (#176)
Browse files Browse the repository at this point in the history
* [#172] feat(BeatApplication): cron 관련 annotation 추가

* [#172] feat(Promotion): promotion entity에 추가로 필요한 필드 추가

* [#172] feat(PromotionService): 지나간 공연에 해당하는 promotion 캐러셀 삭제하는 로직 구현

* [#172] feat(PerformanceDetailResponse): 공연 상세 정보 조회 response에 minDueDate 추가

* [#172] feat(PerformanceDetailResponse): 공연 상세 정보 조회 response에 schedule별 dueDate 추가

* [#172] feat(BookingPerformanceDetailSchedule): 예매하기에 필요한 공연 상세 정보 조회 response에 schedule별 dueDate 추가

* [#172] feat(MakerPerformanceDetail): 등록한 공연 조회 response에 MinDueDate 추가

* [#172] feat(PerformanceService): response에 추가한 필드 반영 및 등록한 공연 조회 정렬 로직 구현

* [#172] refactor(PromotionService): checkAndDeleteInvalidPromotions 성능 및 확장성 고려한 refactor

* [#172] feat(HomePromotionDetail): 캐러셀 response에 필드 추가

* [#172] feat(PerformanceService): 캐러셀 response에 필드 추가
  • Loading branch information
hyerinhwang-sailin authored Aug 16, 2024
1 parent fe0bb64 commit ce21e62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ private List<HomePromotionDetail> getPromotions() {
.map(promotion -> HomePromotionDetail.of(
promotion.getId(),
promotion.getPromotionPhoto(),
promotion.getPerformance().getId()
promotion.getPerformance().getId(),
promotion.getRedirectUrl(),
promotion.isExternal()
))
.collect(Collectors.toList());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
public record HomePromotionDetail(
Long promotionId,
String promotionPhoto,
Long performanceId
Long performanceId,
String redirectUrl,
boolean isExternal
) {
public static HomePromotionDetail of(Long promotionId, String promotionPhoto, Long performanceId) {
return new HomePromotionDetail(promotionId, promotionPhoto, performanceId);
public static HomePromotionDetail of(Long promotionId, String promotionPhoto, Long performanceId, String redirectUrl, boolean isExternal) {
return new HomePromotionDetail(promotionId, promotionPhoto, performanceId, redirectUrl, isExternal);
}
}

0 comments on commit ce21e62

Please sign in to comment.