feat: 优化注册方法检测

This commit is contained in:
2025-12-26 17:22:37 +08:00
parent 29201ac796
commit e415bad869
7 changed files with 65 additions and 51 deletions

View File

@@ -20,12 +20,12 @@ type SetServerOptionFunc func(so *serverOption)
// serverOption 获取server实例的选项
type serverOption struct {
swaggerUiTheme string // swagger 主题
swaggerBaseUri string // swagger基础path
swaggerBaseUri string // swagger 基础path
globalMiddlewareList []gin.HandlerFunc // 全局中间件列表
disableSwaggerDoc bool // 禁用swagger文档, 特定环境不想展示文档, 可通过次方式禁用
serverInfo *apiDocDefine.Info // 服务器信息
serverList []*apiDocDefine.ServerItem // 服务器环境列表
enablePprof bool // 启用pprof
enablePprof bool // 启用 pprof
enableCors bool // 启动跨域支持
disableInitRequest bool // 禁用初始化请求
loggerCfg *middleware.AccessConfig // 日志配置