EventItem - Json 데이터에는 있지만 DTO에는 Key값이 없는 경우 발생하는 오류 수정
This commit is contained in:
parent
cda2f1ec36
commit
1be91d0de4
|
@ -1,5 +1,6 @@
|
||||||
package kr.co.vividnext.sodalive.event
|
package kr.co.vividnext.sodalive.event
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty
|
import com.fasterxml.jackson.annotation.JsonProperty
|
||||||
import com.querydsl.core.annotations.QueryProjection
|
import com.querydsl.core.annotations.QueryProjection
|
||||||
|
|
||||||
|
@ -8,6 +9,7 @@ data class GetEventResponse(
|
||||||
@JsonProperty("eventList") val eventList: List<EventItem>
|
@JsonProperty("eventList") val eventList: List<EventItem>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
data class EventItem @QueryProjection constructor(
|
data class EventItem @QueryProjection constructor(
|
||||||
@JsonProperty("id") val id: Long,
|
@JsonProperty("id") val id: Long,
|
||||||
@JsonProperty("title") val title: String? = null,
|
@JsonProperty("title") val title: String? = null,
|
||||||
|
|
Loading…
Reference in New Issue