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