This commit is contained in:
crusader 2018-04-10 18:27:12 +09:00
parent cb7208967b
commit 320336f59f

View File

@ -0,0 +1,20 @@
package annotation
import (
"reflect"
cda "git.loafle.net/commons/di-go/annotation"
)
var RESTServiceAnnotationType = reflect.TypeOf((*RESTServiceAnnotation)(nil))
func init() {
cda.RegisterAnnotation(RESTServiceAnnotationType)
}
type RESTServiceAnnotation struct {
cda.TypeAnnotation `@annotation:"@overflow:RESTService"`
Method string `@annotation:"method"`
Entry string `@annotation:"entry"`
Params []string `@annotation:"params"`
}