Skip to content

Commit

Permalink
feature:插件注册功能多给一个engine 准备后续扩展
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmaxQm committed Jun 28, 2024
1 parent aa8ef48 commit e386b28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/initialize/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func PluginInit(group *gin.RouterGroup, Plugin ...plugin.Plugin) {
}
}

func InstallPlugin(PrivateGroup *gin.RouterGroup, PublicRouter *gin.RouterGroup) {
func InstallPlugin(PrivateGroup *gin.RouterGroup, PublicRouter *gin.RouterGroup, engine *gin.Engine) {
fmt.Println("无鉴权插件安装==》", PublicRouter)

fmt.Println("鉴权插件安装==》", PrivateGroup)
Expand Down
2 changes: 1 addition & 1 deletion server/initialize/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func Routers() *gin.Engine {
}

//插件路由安装
InstallPlugin(PrivateGroup, PublicGroup)
InstallPlugin(PrivateGroup, PublicGroup, Router)

// 注册业务路由
initBizRouter(PrivateGroup, PublicGroup)
Expand Down

0 comments on commit e386b28

Please sign in to comment.