From 62f8f9e4ee066ecb562de7969180a07cb3d41f57 Mon Sep 17 00:00:00 2001
From: cheliequan <liequanche@126.com>
Date: 星期二, 17 一月 2023 16:40:22 +0800
Subject: [PATCH] 增加根据protobuf转json函数 template <class T> bool bus_dbapi_get_json( T &list, string &json)

---
 stack.cpp |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/stack.cpp b/stack.cpp
index cde8f98..4016e69 100644
--- a/stack.cpp
+++ b/stack.cpp
@@ -3,9 +3,10 @@
 
 using namespace protomsg;
 
-bool dbapi_get_doing_stacks(void *handle, std::vector<protomsg::FileStack> & list) {
+bool dbapi_get_doing_stacks(void *handle, std::vector<protomsg::FileStack> &list) {
     const char *topic = DATA_URL_PREFIX("/fileStack/findAllDoingStacks");
 
-    return true;
-}
+    bool ret = bus_dbapi_get_list(handle, topic, list);
 
+    return ret;
+}

--
Gitblit v1.8.0