feat: 排行榜时间列支持点击排序(created_at,最新在前/最早在前可切换)

This commit is contained in:
dsh
2026-08-17 13:08:01 -04:00
parent 10b9020db0
commit 780e84e67e
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -293,6 +293,8 @@ func (h *Handler) Rankings(c *gin.Context) {
col = "upload_mbps"
case "latency":
col = "latency_ms"
case "created":
col = "created_at"
default:
sortField, col = "download", "download_mbps"
}