EventItem - Json 데이터에는 있지만 DTO에는 Key값이 없는 경우 발생하는 오류 수정

This commit is contained in:
Klaus 2023-10-17 18:25:45 +09:00
parent cda2f1ec36
commit 1be91d0de4
1 changed files with 2 additions and 0 deletions

View File

@ -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,