기본 생성자 없는 data class에 @JsonProperty를 추가하여 Jackson에서 직렬화 할 수 있도록 수정
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package kr.co.vividnext.sodalive.live.recommend
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty
|
||||
|
||||
data class GetRecommendLiveResponse(
|
||||
val imageUrl: String,
|
||||
val creatorId: Long
|
||||
@JsonProperty("imageUrl") val imageUrl: String,
|
||||
@JsonProperty("creatorId") val creatorId: Long
|
||||
)
|
||||
|
Reference in New Issue
Block a user