commons-go/core/annotation/request-mapping.go
crusader 796da7bbfe ing
2018-04-12 18:38:04 +09:00

21 lines
504 B
Go

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"`
}