package example | |
import ( | |
c "github.com/GoAdminGroup/go-admin/modules/config" | |
"github.com/GoAdminGroup/go-admin/modules/service" | |
"github.com/GoAdminGroup/go-admin/plugins" | |
) | |
type Example struct { | |
*plugins.Base | |
} | |
func NewExample() *Example { | |
return &Example{ | |
Base: &plugins.Base{PlugName: "example"}, | |
} | |
} | |
func (e *Example) InitPlugin(srv service.List) { | |
e.InitBase(srv, "example") | |
e.App = e.initRouter(c.Prefix(), srv) | |
} | |