Skip to content

Commit

Permalink
feat: 排序字段添加索引
Browse files Browse the repository at this point in the history
  • Loading branch information
dragove committed Jan 22, 2025
1 parent e05e37d commit f3cf620
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/plus/maa/backend/repository/entity/Copilot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ class Copilot(
// 上传者id
var uploaderId: String? = null,
// 查看次数
@Indexed
var views: Long = 0L,
// 评级
var ratingLevel: Int = 0,
Expand All @@ -36,6 +37,7 @@ class Copilot(
var likeCount: Long = 0,
var dislikeCount: Long = 0,
// 热度
@Indexed
var hotScore: Double = 0.0,
// 难度
var difficulty: Int = 0,
Expand Down

0 comments on commit f3cf620

Please sign in to comment.