Files
sodalive-backend-spring-boot/src/main/kotlin/kr/co/vividnext/sodalive/event/GetEventResponse.kt
T
klaus df3f045209 앱 이벤트 배너 조회 API
- 앱에서 불필요한 날짜, 팝업용, 본인인증 데이터 제거
2025-01-16 01:30:19 +09:00

20 lines
753 B
Kotlin

package kr.co.vividnext.sodalive.event
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import com.fasterxml.jackson.annotation.JsonProperty
import com.querydsl.core.annotations.QueryProjection
data class GetEventResponse(
@JsonProperty("totalCount") val totalCount: Int,
@JsonProperty("eventList") val eventList: List<EventItem>
)
@JsonIgnoreProperties(ignoreUnknown = true)
data class EventItem @QueryProjection constructor(
@JsonProperty("id") val id: Long,
@JsonProperty("thumbnailImageUrl") var thumbnailImageUrl: String,
@JsonProperty("detailImageUrl") var detailImageUrl: String? = null,
@JsonProperty("popupImageUrl") var popupImageUrl: String? = null,
@JsonProperty("link") val link: String? = null
)