From 89777b18ae2820ab67a64888be599f3a1d5c2319 Mon Sep 17 00:00:00 2001 From: hulutech-web Date: Thu, 7 Nov 2024 12:01:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=97=B6=E9=97=B4=E9=99=8D?= =?UTF-8?q?=E5=BA=8F=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- paginator.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paginator.go b/paginator.go index ce3ea6d..7dfa359 100644 --- a/paginator.go +++ b/paginator.go @@ -86,6 +86,8 @@ func (h *HttpResult) SearchByParams(params map[string]string, conditionMap map[s } } } + //默认按照时间降序排序 + q.Order("id desc") return q }(query)