GetAudioContentMainItem - JsonProperty 어노테이션 추가
This commit is contained in:
parent
1f055c2283
commit
5f3c7e7e90
|
@ -51,7 +51,7 @@ data class AudioContent(
|
|||
@JoinColumn(name = "curation_id", nullable = true)
|
||||
var curation: AudioContentCuration? = null
|
||||
|
||||
@OneToOne(fetch = FetchType.EAGER)
|
||||
@OneToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "member_id", nullable = false)
|
||||
var member: Member? = null
|
||||
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
package kr.co.vividnext.sodalive.content.main
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty
|
||||
import com.querydsl.core.annotations.QueryProjection
|
||||
|
||||
data class GetAudioContentMainItem @QueryProjection constructor(
|
||||
val contentId: Long,
|
||||
val coverImageUrl: String,
|
||||
val title: String,
|
||||
val isAdult: Boolean,
|
||||
val creatorId: Long,
|
||||
val creatorProfileImageUrl: String,
|
||||
val creatorNickname: String
|
||||
@JsonProperty("contentId") val contentId: Long,
|
||||
@JsonProperty("coverImageUrl") val coverImageUrl: String,
|
||||
@JsonProperty("title") val title: String,
|
||||
@JsonProperty("isAdult") val isAdult: Boolean,
|
||||
@JsonProperty("creatorId") val creatorId: Long,
|
||||
@JsonProperty("creatorProfileImageUrl") val creatorProfileImageUrl: String,
|
||||
@JsonProperty("creatorNickname") val creatorNickname: String
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue