feat: 라이브 메인 API

- 기존에 섹션별로 따로따로 호출하던 것을 하나로 합쳐서 호출할 수 있도록 API 추가
This commit is contained in:
2025-07-21 15:14:47 +09:00
parent 8e877a6366
commit 046c163e6f
11 changed files with 212 additions and 6 deletions

View File

@@ -24,6 +24,7 @@ import kr.co.vividnext.sodalive.member.block.BlockMemberRepository
import kr.co.vividnext.sodalive.utils.generateFileName
import kr.co.vividnext.sodalive.utils.validateImage
import org.springframework.beans.factory.annotation.Value
import org.springframework.cache.annotation.Cacheable
import org.springframework.context.ApplicationEventPublisher
import org.springframework.data.repository.findByIdOrNull
import org.springframework.stereotype.Service
@@ -441,6 +442,11 @@ class CreatorCommunityService(
return GetCommunityPostCommentListResponse(totalCount = totalCount, items = commentList)
}
@Transactional(readOnly = true)
@Cacheable(
cacheNames = ["cache_ttl_5_minutes"],
key = "'getLatestPostListFromCreatorsYouFollow:' + #memberId + ':' + #isAdult + ':' + #timezone"
)
fun getLatestPostListFromCreatorsYouFollow(
timezone: String,
memberId: Long,