Skip to content

Commit

Permalink
Merge pull request #447 from Kernel360/refactor/#446/recommand-conten…
Browse files Browse the repository at this point in the history
…t-calculated-level

[REFACTOR] 프론트 요청에 따른 카테고리 기반 추천 콘텐츠 응답에 calculatedLevel 추가
  • Loading branch information
mooncw authored Nov 26, 2024
2 parents 58c2e69 + 367ae58 commit e66eeeb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ public List<RecommenderInfo.Preview> findCustomizedContentsByCategories(Long use
contentEntity.thumbnailUrl,
contentEntity.contentType,
contentEntity.category.name,
contentEntity.contentLevel,
getIsPointRequiredByUserIdAndContent(userId, contentEntity.id, contentEntity.createdAt)
)
)
Expand Down Expand Up @@ -230,6 +231,7 @@ public List<RecommenderInfo.Preview> findCustomizedContentsByCategories(Long use
contentEntity.thumbnailUrl,
contentEntity.contentType,
contentEntity.category.name,
contentEntity.contentLevel,
getIsPointRequiredByUserIdAndContent(userId, contentEntity.id, contentEntity.createdAt)
)
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.util.List;

import com.biengual.core.domain.entity.recommender.BookmarkRecommenderEntity;
import com.biengual.core.enums.ContentLevel;
import com.biengual.core.enums.ContentType;

import lombok.Builder;
Expand All @@ -15,6 +16,7 @@ public record Preview(
String thumbnailUrl, // coverImageUrl
ContentType contentType,
String category,
ContentLevel calculatedLevel,
Boolean isPointRequired
) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.List;

import com.biengual.core.enums.ContentLevel;
import com.biengual.core.enums.ContentType;

import lombok.Builder;
Expand All @@ -14,6 +15,7 @@ public record Preview(
String thumbnailUrl, // coverImageUrl
ContentType contentType,
String category,
ContentLevel calculatedLevel,
Boolean isPointRequired
) {
}
Expand Down

0 comments on commit e66eeeb

Please sign in to comment.