server/pkg/loafer/web/annotation/service.go

20 lines
337 B
Go
Raw Normal View History

2019-11-11 15:00:04 +00:00
package annotation
import (
"reflect"
cda "git.loafle.net/commons/di-go/annotation"
)
var ServiceAnnotationType = reflect.TypeOf((*ServiceAnnotation)(nil))
func init() {
cda.RegisterAnnotation(ServiceAnnotationType)
}
type ServiceAnnotation struct {
cda.TypeAnnotation `@annotation:"@web:Service"`
Name string `json:"name"`
}