From 2383d444ae162f3071f6240bfaa9b15569906cc3 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期五, 13 一月 2023 18:08:43 +0800
Subject: [PATCH] 添加带参数的get请求

---
 util.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/util.h b/util.h
index 1533e90..93bc335 100644
--- a/util.h
+++ b/util.h
@@ -26,12 +26,16 @@
 
 bool json_to_proto(const std::string &json, google::protobuf::Message &message);
 bool proto_to_json(const google::protobuf::Message &message, std::string &json);
+
 char *make_get_request(const char *topic);
+char *make_get_request(const char *topic, const std::map<string, string> *query_params);
+
 bool bus_dbapi_get(void *handle, const char *topic, google::protobuf::Message &message);
 bool bus_dbapi_get_topic_data(void *handle, const char *topic, crepmsg **pptr_repmsg, size_t len);
 extern "C" int bus_dbapi_get_json_data(const char *json, char **pptr_data, uint8_t *ptr_type);
 bool bus_dbapi_get_str(void *handle, const char *topic, char **pptr_str);
 int get_value_by_key(char *json, const char *key, char **pptr_data);
+
 template <class T>
 bool bus_dbapi_get_list(char *json, T &list) {
     char *ptr_value = NULL;

--
Gitblit v1.8.0