update
parent
fee62350bd
commit
7e2e1f0c19
|
@ -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()
|
||||
}
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue