plugin.go 307 B

12345678910111213
  1. package initialize
  2. import (
  3. "github.com/flipped-aurora/gin-vue-admin/server/utils/plugin"
  4. "github.com/gin-gonic/gin"
  5. )
  6. func PluginInit(group *gin.RouterGroup, Plugin ...plugin.Plugin) {
  7. for i := range Plugin {
  8. PluginGroup := group.Group(Plugin[i].RouterPath())
  9. Plugin[i].Register(PluginGroup)
  10. }
  11. }