From 9cd362240315ecb0b3e3d36969a575f285400c47 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期四, 13 五月 2021 18:31:21 +0800
Subject: [PATCH] add gb28181 GetAllSubServer and SaveGb28181CamTree func

---
 app.go |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/app.go b/app.go
index e2fe8c2..1180196 100644
--- a/app.go
+++ b/app.go
@@ -40,6 +40,23 @@
 	return res.Success, res.Data
 }
 
+func (api AppApi) GetAppInfo(id string) (flag bool, d interface{}) {
+	url := api.getBasicUrl() + DATA_URL_PREFIX + "/app/getAppInfo"
+	client := NewClient()
+	paramMap := make(map[string]string, 0)
+	paramMap["id"] = id
+	respBody, err := client.DoGetRequest(url, paramMap, nil)
+	if err !=nil {
+		return false,nil
+	}
+	var res Result
+	if err = json.Unmarshal(respBody, &res); err != nil {
+		logPrint(err)
+		return false, nil
+	}
+	return res.Success, res.Data
+}
+
 func (api AppApi) Save(paramBody map[string]interface{}) (bool,interface{}) {
 	url := api.getBasicUrl() + DATA_URL_PREFIX + "/app/save"
 	client := NewClient()
@@ -71,4 +88,4 @@
 		return false,nil
 	}
 	return res.Success,res.Data
-}
\ No newline at end of file
+}

--
Gitblit v1.8.0