server/pkg/loafer/web/annotation/request-mapping.go
2019-11-14 00:18:54 +09:00

23 lines
442 B
Go

package annotation
import (
"reflect"
"git.loafle.net/loafer/annotation-go"
)
var RequestMappingAnnotationType = reflect.TypeOf((*RequestMappingAnnotation)(nil))
func init() {
if err := annotation.Register(RequestMappingAnnotationType); nil != err {
panic(err)
}
}
type RequestMappingAnnotation struct {
annotation.TypeAnnotation `@annotation:"@web:RequestMapping"`
Method string `json:"method"`
Entry string `json:"entry"`
}