Skip to content

Commit

Permalink
默认时间降序排序
Browse files Browse the repository at this point in the history
  • Loading branch information
hulutech-web committed Nov 7, 2024
1 parent 29454f0 commit 89777b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions paginator.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ func (h *HttpResult) SearchByParams(params map[string]string, conditionMap map[s
}
}
}
//默认按照时间降序排序
q.Order("id desc")

return q
}(query)
Expand Down

0 comments on commit 89777b1

Please sign in to comment.