@@ -82,20 +82,20 @@ private int getLastMonthRank(Long clubId, int year, int month) {
8282 .orElse (0 );
8383 }
8484
85- private ClubFeedRankingQuery toClubFeedRankingQuery (int rank , MonthlyFeedRankingDto dto ) {
86- long feedScore = dto .getFeedCount () * FEED_WEIGHT ;
87- long viewScore = dto .getViewCount () * VIEW_WEIGHT ;
88- long likeScore = dto .getLikeCount () * LIKE_WEIGHT ;
89- long commentScore = dto .getCommentCount () * COMMENT_WEIGHT ;
85+ private ClubFeedRankingQuery toClubFeedRankingQuery (int rank , MonthlyFeedRankingDto rawRanking ) {
86+ long feedScore = rawRanking .getFeedCount () * FEED_WEIGHT ;
87+ long viewScore = rawRanking .getViewCount () * VIEW_WEIGHT ;
88+ long likeScore = rawRanking .getLikeCount () * LIKE_WEIGHT ;
89+ long commentScore = rawRanking .getCommentCount () * COMMENT_WEIGHT ;
9090 long totalScore = feedScore + viewScore + likeScore + commentScore ;
91- return ClubFeedRankingQuery .of (rank , dto .getClubId (), dto .getClubName (),
91+ return ClubFeedRankingQuery .of (rank , rawRanking .getClubId (), rawRanking .getClubName (),
9292 feedScore , viewScore , likeScore , commentScore , totalScore );
9393 }
9494
95- private long calculateScore (MonthlyFeedRankingDto dto ) {
96- return dto .getFeedCount () * FEED_WEIGHT
97- + dto .getViewCount () * VIEW_WEIGHT
98- + dto .getLikeCount () * LIKE_WEIGHT
99- + dto .getCommentCount () * COMMENT_WEIGHT ;
95+ private long calculateScore (MonthlyFeedRankingDto rawRanking ) {
96+ return rawRanking .getFeedCount () * FEED_WEIGHT
97+ + rawRanking .getViewCount () * VIEW_WEIGHT
98+ + rawRanking .getLikeCount () * LIKE_WEIGHT
99+ + rawRanking .getCommentCount () * COMMENT_WEIGHT ;
100100 }
101101}
0 commit comments