From 985d4476989e808a2ab5aa0e4fed92a46f7ec0a6 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期六, 17 十月 2020 15:23:13 +0800
Subject: [PATCH] findCluster use proto
---
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