This commit is contained in:
crusader 2018-04-10 21:46:26 +09:00
parent 320336f59f
commit bdb30d43ca
2 changed files with 20 additions and 3 deletions

View File

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

View File

@ -14,7 +14,4 @@ func init() {
type RESTServiceAnnotation struct {
cda.TypeAnnotation `@annotation:"@overflow:RESTService"`
Method string `@annotation:"method"`
Entry string `@annotation:"entry"`
Params []string `@annotation:"params"`
}