master
Evan Chen 2021-12-19 02:11:23 +08:00
parent fee62350bd
commit 7e2e1f0c19
2 changed files with 4 additions and 16 deletions

View File

@ -1,15 +0,0 @@
package attribute
type Service struct{}
func (srv Service) GetName() string { return "attribute.Service" }
func (srv Service) IsService() bool { return true }
func (srv Service) GetDependencies() []string { return []string{} }
func (srv Service) Main() error { return nil }
func (srv Service) Del() {}
func (srv Service) Load() error { return nil }
func (srv Service) Health() error { return nil }
func (srv Service) Init() error {
return Init()
}

View File

@ -18,6 +18,10 @@ func Default() *system.System {
sys := system.New()
server := server.New(viper.GetString("name"))
if err := attribute.Init(); err != nil {
panic(err)
}
auth.Setup()
auth.SetDB(store.DB)
@ -27,7 +31,6 @@ func Default() *system.System {
&history.Service{},
&email.Service{},
&control.Service{},
&attribute.Service{},
)
return sys
}