优化结构

This commit is contained in:
Yvan
2026-08-21 08:54:29 +08:00
parent c968f9f24e
commit 77e192b6c0
167 changed files with 3657 additions and 1528 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ import (
"strings"
"sync"
"kra/app/system/internal/routeinfo"
"kra/app/system/internal/service"
"github.com/gin-gonic/gin"
swaggerFiles "github.com/swaggo/files"
@@ -86,7 +86,7 @@ func buildSwaggerDocument(routes []gin.RouteInfo, prefix, version string) string
apiPath = "/"
}
documentPath := swaggerPathParameter.ReplaceAllString(apiPath, `{$1}`)
group, description := routeinfo.Metadata(route.Method, apiPath)
group, description := service.RouteMetadata(route.Method, apiPath)
if description == "" {
description = route.Method + " " + apiPath
}