Refactor code

pull/131/head
wenxu12345 3 years ago
parent e75e36e999
commit d58dc29550

@ -410,7 +410,7 @@ func (s *friendServer) GetFriendList(ctx context.Context, req *pbFriend.GetFrien
for _, friendUser := range friends { for _, friendUser := range friends {
var friendUserInfo sdkws.FriendInfo var friendUserInfo sdkws.FriendInfo
utils.CopyStructFields(&friendUserInfo, friendUser) utils.CopyStructFields(&friendUserInfo, &friendUser)
userInfoList = append(userInfoList, &friendUserInfo) userInfoList = append(userInfoList, &friendUserInfo)
} }
log.NewInfo(req.CommID.OperationID, "rpc GetFriendList ok", pbFriend.GetFriendListResp{FriendInfoList: userInfoList}) log.NewInfo(req.CommID.OperationID, "rpc GetFriendList ok", pbFriend.GetFriendListResp{FriendInfoList: userInfoList})

Loading…
Cancel
Save