20 lines
337 B
Go
20 lines
337 B
Go
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"`
|
|
}
|