From 3ed4ed6cb3b2bf382bf0998d1e6138d9ca950e18 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期五, 18 十二月 2020 18:25:04 +0800
Subject: [PATCH] use post del
---
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