2017-12-14 06:17:58 +00:00
|
|
|
package service
|
|
|
|
|
2018-03-26 02:58:39 +00:00
|
|
|
import (
|
|
|
|
"reflect"
|
|
|
|
|
|
|
|
cda "git.loafle.net/commons_go/di/annotation"
|
|
|
|
cdr "git.loafle.net/commons_go/di/registry"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
cdr.RegisterType(reflect.TypeOf((*StateService)(nil)))
|
|
|
|
}
|
|
|
|
|
2017-12-14 06:17:58 +00:00
|
|
|
type StateService struct {
|
2018-03-26 02:58:39 +00:00
|
|
|
cda.TypeAnnotation `annotation:"@overFlow:Service()"`
|
2017-12-14 06:17:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (s *StateService) State() (bool, error) {
|
|
|
|
return true, nil
|
|
|
|
}
|