ing
This commit is contained in:
parent
320336f59f
commit
bdb30d43ca
20
annotation/request-mapping.go
Normal file
20
annotation/request-mapping.go
Normal 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"`
|
||||
}
|
|
@ -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"`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user