From 9277f37f41d157db9e6f10b63fbe77f250980a43 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期一, 24 五月 2021 17:19:44 +0800
Subject: [PATCH] add gb TreeSelected
---
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