이벤트 조회

- 시작날짜, 종료날짜 추가
This commit is contained in:
Klaus 2024-10-30 23:28:36 +09:00
parent 116aea3431
commit 85f14edc0a
3 changed files with 9 additions and 0 deletions

View File

@ -123,6 +123,8 @@ class AudioContentMainService(
it.event!!.detailImage
},
popupImageUrl = null,
startDate = it.event!!.startDate,
endDate = it.event!!.endDate,
link = it.event!!.link,
title = it.event!!.title,
isPopup = false

View File

@ -44,6 +44,8 @@ class EventQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) : Even
event.thumbnailImage,
event.detailImage,
event.popupImage,
event.startDate,
event.endDate,
event.link,
event.isAdult,
event.isPopup
@ -83,6 +85,8 @@ class EventQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) : Even
event.thumbnailImage,
event.detailImage,
event.popupImage,
event.startDate,
event.endDate,
event.link,
event.isAdult,
event.isPopup

View File

@ -3,6 +3,7 @@ package kr.co.vividnext.sodalive.event
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import com.querydsl.core.annotations.QueryProjection
import java.time.LocalDateTime
data class GetEventResponse(
@JsonProperty("totalCount") val totalCount: Int,
@ -16,6 +17,8 @@ data class EventItem @QueryProjection constructor(
@JsonProperty("thumbnailImageUrl") var thumbnailImageUrl: String,
@JsonProperty("detailImageUrl") var detailImageUrl: String? = null,
@JsonProperty("popupImageUrl") var popupImageUrl: String? = null,
@JsonProperty("startDate") var startDate: LocalDateTime,
@JsonProperty("endDate") var endDate: LocalDateTime,
@JsonProperty("link") val link: String? = null,
@JsonProperty("isAdult") val isAdult: Boolean? = null,
@JsonProperty("isPopup") val isPopup: Boolean