From d84aafebb7ccea95e0eda5d7bc23b96dd4b32e63 Mon Sep 17 00:00:00 2001 From: Howl Date: Thu, 7 Apr 2016 11:44:46 +0200 Subject: [PATCH] Top forgetting to add r.Code = and r.Message = --- app/v1/friend.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/v1/friend.go b/app/v1/friend.go index f08307e..0740a2e 100644 --- a/app/v1/friend.go +++ b/app/v1/friend.go @@ -76,6 +76,9 @@ ORDER BY users_relationships.id` if err := results.Err(); err != nil { md.C.Error(err) } + + r.Code = 200 + r.Data = myFriends return }