commons-go/annotation/request-mapping.go

21 lines
504 B
Go
Raw Normal View History

2018-04-10 12:46:26 +00:00
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"`
}