크리에이터, 콘텐츠, 시리즈 검색

- 콘텐츠, 시리즈 검색 결과에 크리에이터 닉네임 추가
This commit is contained in:
Klaus 2025-03-27 05:40:07 +09:00
parent e1e9f4588a
commit 5777d9700f
2 changed files with 7 additions and 3 deletions

View File

@ -70,6 +70,7 @@ class SearchRepository(
QSearchResponseItem( QSearchResponseItem(
member.id, member.id,
member.profileImage.prepend("/").prepend(imageHost), member.profileImage.prepend("/").prepend(imageHost),
member.nickname,
member.nickname member.nickname
) )
) )
@ -200,7 +201,8 @@ class SearchRepository(
QSearchResponseItem( QSearchResponseItem(
audioContent.id, audioContent.id,
audioContent.coverImage.prepend("/").prepend(imageHost), audioContent.coverImage.prepend("/").prepend(imageHost),
audioContent.title audioContent.title,
audioContent.member.nickname
) )
) )
.from(audioContent) .from(audioContent)
@ -330,7 +332,8 @@ class SearchRepository(
QSearchResponseItem( QSearchResponseItem(
series.id, series.id,
series.coverImage.prepend("/").prepend(imageHost), series.coverImage.prepend("/").prepend(imageHost),
series.title series.title,
series.member.nickname
) )
) )
.from(seriesContent) .from(seriesContent)

View File

@ -16,7 +16,8 @@ data class SearchResponse(
data class SearchResponseItem @QueryProjection constructor( data class SearchResponseItem @QueryProjection constructor(
val id: Long, val id: Long,
val imageUrl: String, val imageUrl: String,
val titleOrNickname: String val title: String,
val nickname: String
) { ) {
var type: SearchResponseType = SearchResponseType.CREATOR var type: SearchResponseType = SearchResponseType.CREATOR
} }