2019-11-11 15:00:04 +00:00
|
|
|
package annotation
|
|
|
|
|
|
|
|
import (
|
|
|
|
"reflect"
|
|
|
|
|
2019-11-13 14:21:05 +00:00
|
|
|
"git.loafle.net/loafer/annotation-go"
|
2019-11-11 15:00:04 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var ServiceAnnotationType = reflect.TypeOf((*ServiceAnnotation)(nil))
|
|
|
|
|
|
|
|
func init() {
|
2019-11-13 14:21:05 +00:00
|
|
|
if err := annotation.Register(ServiceAnnotationType); nil != err {
|
|
|
|
panic(err)
|
|
|
|
}
|
2019-11-11 15:00:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type ServiceAnnotation struct {
|
2019-11-13 14:21:05 +00:00
|
|
|
annotation.TypeAnnotation `@annotation:"@web:Service"`
|
2019-11-11 15:00:04 +00:00
|
|
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
}
|