ing
This commit is contained in:
parent
efbe369c88
commit
1970abba17
|
@ -52,7 +52,6 @@ func parseRestHandler(restHandler interface{}) *webAnnotation.RestHandlerAnnotat
|
|||
log.Printf("Service[%s] is not RESTService, use @RESTService", t.Elem().Name())
|
||||
return nil
|
||||
}
|
||||
log.Printf("%s %v", t.Elem().Name(), ta)
|
||||
return ta.(*webAnnotation.RestHandlerAnnotation)
|
||||
}
|
||||
|
||||
|
|
|
@ -31,6 +31,8 @@ type UserHandler struct {
|
|||
func (us *UserHandler) List(ctx *fasthttp.RequestCtx) error {
|
||||
fmt.Fprintf(ctx, "List hello, %s!\n", ctx.UserValue("id"))
|
||||
|
||||
us.UserService.FindAll()
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user