升级路由注册 #7
@ -143,6 +143,18 @@ func (s *server) Handler404(f gin.HandlerFunc) {
|
||||
s.router.NoRoute(f)
|
||||
}
|
||||
|
||||
// SetCustomRouter 自定义路由处理
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 16:09 2025/2/22
|
||||
func (s *server) SetCustomRouter(f func(r *gin.Engine)) {
|
||||
if nil == f {
|
||||
return
|
||||
}
|
||||
f(s.router)
|
||||
}
|
||||
|
||||
// Group 注册接口路由
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
|
Loading…
x
Reference in New Issue
Block a user