From 1970abba1769fb8585f0e13d14fece18d16a9f6e Mon Sep 17 00:00:00 2001 From: Richard Park Date: Fri, 15 Nov 2019 00:57:53 +0900 Subject: [PATCH] ing --- pkg/loafer/app/app.go | 1 - pkg/modules/user/user-handler.go | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/loafer/app/app.go b/pkg/loafer/app/app.go index c27cd5f..f01a7a1 100644 --- a/pkg/loafer/app/app.go +++ b/pkg/loafer/app/app.go @@ -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) } diff --git a/pkg/modules/user/user-handler.go b/pkg/modules/user/user-handler.go index 4c14a49..9695637 100644 --- a/pkg/modules/user/user-handler.go +++ b/pkg/modules/user/user-handler.go @@ -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 }