From 6057de8f11430c7834c2e816d2223d6ed0009e5e Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期五, 28 八月 2020 21:02:58 +0800
Subject: [PATCH] add acpApi

---
 sysMenuApi.go |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/sysMenuApi.go b/sysMenuApi.go
index 7c10ad1..a5a7fb6 100644
--- a/sysMenuApi.go
+++ b/sysMenuApi.go
@@ -23,10 +23,13 @@
 	return "http://"+api.Ip+":"+strconv.Itoa(api.Port)
 }
 
-func (api SysMenuApi) MenuTree() (bool,interface{}) {
+func (api SysMenuApi) MenuTree(userId string) (bool,interface{}) {
 	url := api.getBasicUrl() + DATA_URL_PREFIX + "/menu/tree"
 	client := NewClient()
-	body, err := client.DoGetRequest(url, nil, nil)
+	query := map[string]string{
+		"userId": userId,
+	}
+	body, err := client.DoGetRequest(url, query, nil)
 	if err != nil {
 		return false,nil
 	}

--
Gitblit v1.8.0