package initialize import ( "github.com/flipped-aurora/gin-vue-admin/utils/plugin" "github.com/gin-gonic/gin" ) func PluginInit(group *gin.RouterGroup, Plugin ...plugin.Plugin) { for i := range Plugin { PluginGroup := group.Group(Plugin[i].RouterPath()) Plugin[i].Register(PluginGroup) } }