From 320336f59fe3670c9d43b471bdb66cd1c75e3b2d Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 10 Apr 2018 18:27:12 +0900 Subject: [PATCH] ing --- annotation/rest-service.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 annotation/rest-service.go diff --git a/annotation/rest-service.go b/annotation/rest-service.go new file mode 100644 index 0000000..cc2e0ad --- /dev/null +++ b/annotation/rest-service.go @@ -0,0 +1,20 @@ +package annotation + +import ( + "reflect" + + cda "git.loafle.net/commons/di-go/annotation" +) + +var RESTServiceAnnotationType = reflect.TypeOf((*RESTServiceAnnotation)(nil)) + +func init() { + cda.RegisterAnnotation(RESTServiceAnnotationType) +} + +type RESTServiceAnnotation struct { + cda.TypeAnnotation `@annotation:"@overflow:RESTService"` + Method string `@annotation:"method"` + Entry string `@annotation:"entry"` + Params []string `@annotation:"params"` +}