From 00ee11c757204f61ba450656c381293b9e0b0bbd Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 7 Dec 2020 13:13:42 +0800 Subject: [PATCH] 1 --- cpp/types.cc | 7 +++++++ cpp/types.h | 1 + 2 files changed, 8 insertions(+) diff --git a/cpp/types.cc b/cpp/types.cc index 55ac948..e22f8b8 100644 --- a/cpp/types.cc +++ b/cpp/types.cc @@ -18,4 +18,11 @@ namespace f8 } } + std::string JsonHttpRequest::Response() + { + std::string response; + resp_xobj->ToJsonStr(response); + return a8::HttpResponse(response); + } + } diff --git a/cpp/types.h b/cpp/types.h index 2b8ca7b..346304f 100644 --- a/cpp/types.h +++ b/cpp/types.h @@ -24,6 +24,7 @@ namespace f8 JsonHttpRequest(); ~JsonHttpRequest(); + std::string Response(); }; enum SysInnerMesssage_e