From a2a93e906ffbef9289873cb69613b3c00b7853ea Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 16 一月 2020 10:24:26 +0800
Subject: [PATCH] add UpdateIsRunningAll,use in pollcontrol
---
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