From 9372a0791bd30071bee94cef7921171b3a570828 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期一, 24 二月 2020 19:08:26 +0800
Subject: [PATCH] add FindByStackId
---
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