fix: 修复一些错误引用
This commit is contained in:
		@ -15,8 +15,6 @@ import (
 | 
			
		||||
 | 
			
		||||
	"git.zhangdeman.cn/zhangdeman/graceful"
 | 
			
		||||
 | 
			
		||||
	"git.zhangdeman.cn/zhangdeman/gin/define"
 | 
			
		||||
 | 
			
		||||
	apiDoc "git.zhangdeman.cn/zhangdeman/api-doc"
 | 
			
		||||
	"git.zhangdeman.cn/zhangdeman/consts"
 | 
			
		||||
	"git.zhangdeman.cn/zhangdeman/gin/middleware"
 | 
			
		||||
@ -67,10 +65,6 @@ func newServerOption(port int, optionList ...SetServerOptionFunc) *serverOption
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// NewServer server实例
 | 
			
		||||
//
 | 
			
		||||
// Author : go_developer@163.com<白茶清欢>
 | 
			
		||||
//
 | 
			
		||||
// Date : 18:20 2025/2/7
 | 
			
		||||
func NewServer(port int, optionList ...SetServerOptionFunc) *server {
 | 
			
		||||
	if port < 80 {
 | 
			
		||||
		panic("port should be greater than 80")
 | 
			
		||||
@ -86,10 +80,6 @@ func NewServer(port int, optionList ...SetServerOptionFunc) *server {
 | 
			
		||||
	// CustomContext 必须在第一个, 并且进行初始化
 | 
			
		||||
	globalMiddlewareList = append(
 | 
			
		||||
		globalMiddlewareList,
 | 
			
		||||
		func(ctx *gin.Context) {
 | 
			
		||||
			// 初始化上下文以及基础信息
 | 
			
		||||
			_ = define.NewContext(ctx)
 | 
			
		||||
		},
 | 
			
		||||
	)
 | 
			
		||||
	if nil != option.loggerCfg {
 | 
			
		||||
		// 请求日志记录中间件
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user