#include "dbapi.h" #include "util.h" #include "3rdparty/yyjson/yyjson.h" using namespace protomsg; bool dbapi_get_time_rules(void *handle, std::vector & list){ const char *topic = DATA_URL_PREFIX("/cameraTimerule/findAll"); bool ret = bus_dbapi_get_list(handle, topic, list); return ret; } bool dbapi_get_camera_rules(void *handle, std::vector & list) { const char *topic = DATA_URL_PREFIX("/camera/rule/findAll"); bool ret = bus_dbapi_get_list(handle, topic, list); return true;; }