로딩 속도를 위해 @Cacheable 적용 #50
|
@ -1,5 +1,6 @@
|
|||
package kr.co.vividnext.sodalive.event
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
import com.fasterxml.jackson.annotation.JsonProperty
|
||||
import com.querydsl.core.annotations.QueryProjection
|
||||
|
||||
|
@ -8,6 +9,7 @@ data class GetEventResponse(
|
|||
@JsonProperty("eventList") val eventList: List<EventItem>
|
||||
)
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class EventItem @QueryProjection constructor(
|
||||
@JsonProperty("id") val id: Long,
|
||||
@JsonProperty("title") val title: String? = null,
|
||||
|
|
Loading…
Reference in New Issue