From bdb30d43cad1e24ca723d0095d0a4e1e580923a7 Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 10 Apr 2018 21:46:26 +0900 Subject: [PATCH] ing --- annotation/request-mapping.go | 20 ++++++++++++++++++++ annotation/rest-service.go | 3 --- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 annotation/request-mapping.go diff --git a/annotation/request-mapping.go b/annotation/request-mapping.go new file mode 100644 index 0000000..b862365 --- /dev/null +++ b/annotation/request-mapping.go @@ -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"` +} diff --git a/annotation/rest-service.go b/annotation/rest-service.go index cc2e0ad..7ef6ecb 100644 --- a/annotation/rest-service.go +++ b/annotation/rest-service.go @@ -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"` }