fix: 配置版本列表按 created_at 倒序展示

This commit is contained in:
ryan
2026-06-20 21:32:18 +08:00
parent 6fc39d9e80
commit b04a358e5e
5 changed files with 52 additions and 7 deletions
@@ -11,7 +11,6 @@ import (
"github.com/gin-gonic/gin"
)
func handleLogicError(c *gin.Context, err error) bool {
if err == nil {
return false
@@ -21,7 +20,7 @@ func handleLogicError(c *gin.Context, err error) bool {
// ListConfigVersionsHandler lists config versions.
// @Summary 获取配置版本列表
// @Description 返回所有已发布的 OpenResty 配置版本摘要,需要管理员权限
// @Description 返回所有已发布的 OpenResty 配置版本摘要,按创建时间倒序排列,需要管理员权限
// @Tags openflare-config-version
// @Produce json
// @Security SessionCookie
@@ -187,4 +186,4 @@ func CleanupConfigVersionsHandler(c *gin.Context) {
return
}
c.JSON(http.StatusOK, response.OK(result))
}
}