ing
This commit is contained in:
parent
cb7208967b
commit
320336f59f
20
annotation/rest-service.go
Normal file
20
annotation/rest-service.go
Normal file
|
@ -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"`
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user