Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/java/com/techfork/domain/post/entity/Post.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ public class Post extends BaseEntity {

@PersistenceCreator
@Builder
Post(String title, String fullContent, String plainContent, String company, String logoUrl, String thumbnailUrl,
Post(String title, String fullContent, String plainContent, String summary, String company, String logoUrl, String thumbnailUrl,
String url, LocalDateTime publishedAt, LocalDateTime crawledAt, LocalDateTime embeddedAt, TechBlog techBlog) {
this.title = title;
this.fullContent = fullContent;
this.plainContent = plainContent;
this.summary = summary;
this.company = company;
this.logoUrl = logoUrl;
this.thumbnailUrl = thumbnailUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,16 @@ public class RecommendationHistory extends BaseEntity {
@PersistenceCreator
@Builder
RecommendationHistory(User user, Post post, Double similarityScore,
Double mmrScore, Integer rankOrder, LocalDateTime recommendedAt) {
Double mmrScore, Integer rankOrder, LocalDateTime recommendedAt,
Boolean isClicked, LocalDateTime clickedAt) {
this.user = user;
this.post = post;
this.similarityScore = similarityScore;
this.mmrScore = mmrScore;
this.rankOrder = rankOrder;
this.recommendedAt = recommendedAt;
this.isClicked = false;
this.isClicked = isClicked != null ? isClicked : false;
this.clickedAt = clickedAt;
}

/**
Expand Down
Loading