This commit is contained in:
병준 박 2019-11-15 00:57:53 +09:00
parent efbe369c88
commit 1970abba17
2 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,6 @@ func parseRestHandler(restHandler interface{}) *webAnnotation.RestHandlerAnnotat
log.Printf("Service[%s] is not RESTService, use @RESTService", t.Elem().Name()) log.Printf("Service[%s] is not RESTService, use @RESTService", t.Elem().Name())
return nil return nil
} }
log.Printf("%s %v", t.Elem().Name(), ta)
return ta.(*webAnnotation.RestHandlerAnnotation) return ta.(*webAnnotation.RestHandlerAnnotation)
} }

View File

@ -31,6 +31,8 @@ type UserHandler struct {
func (us *UserHandler) List(ctx *fasthttp.RequestCtx) error { func (us *UserHandler) List(ctx *fasthttp.RequestCtx) error {
fmt.Fprintf(ctx, "List hello, %s!\n", ctx.UserValue("id")) fmt.Fprintf(ctx, "List hello, %s!\n", ctx.UserValue("id"))
us.UserService.FindAll()
return nil return nil
} }