liuxiaolong
2019-05-06 f99bc8c6a1d10610373738edd7d0aa0181c81d99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
菜单-SysMenuController
 
1.查询登录用户菜单
        请求地址:http://localhost:8080/api-u/sysmenus/me
        请求方式:Get
        请求参数:
        返回对象:[
               {
                 "id": 101,
                 "orgId": 101,
                 "parentId": 0,
                 "parentIds": ",0,",
                 "orgIdsShow": null,
                 "orgIdsHide": null,
                 "name": "系统设置",
                 "sort": 1,
                 "url": "",
                 "icon": "fa-gears",
                 "type": 1,
                 "isSystem": 0,
                 "permission": "",
                 "remarks": null,
                 "enabled": true,
                 "delFlag": "0",
                 "createTime": 1516204800000,
                 "updateTime": 1516204800000,
                 "child": []
                 }
 
2. 菜单树查询,全部菜单。修改权限时用。
        请求地址:http://localhost:8080/api-u/sysmenus/tree
        请求方式:Get
        请求参数:
        返回对象:同上。
 
3.获取角色的菜单
        请求地址:http://localhost:8080/api-u/sysmenus/roleId
        请求方式:Get
        请求参数:
        返回对象:[128,129,130]
 
4.添加菜单
       请求地址:http://localhost:8080/api-u/sysmenus/
       请求方式:Post
       请求参数:SysMenu[id,orgId,parentId,parentIds,orgIdsShow,
                 orgIdsHide,name,sort,url,icon,type,isSystem,permission,
                 remarks,enabled,delFlag,createTime,updateTime]
       返回对象:当前SysMenu
 
5.修改菜单
       请求地址:http://localhost:8080/api-u/sysmenus/
       请求方式:Put
       请求参数:SysMenu[id,orgId,parentId,parentIds,orgIdsShow,
                 orgIdsHide,name,sort,url,icon,type,isSystem,permission,
                 remarks,enabled,delFlag,createTime,updateTime]
       返回对象:当前SysMenu
 
6.删除菜单
       请求地址:http://localhost:8080/api-u/sysmenus/{id}
       请求方式:Delete
       请求参数:/{id} 菜单id
       返回对象:
 
7.查询所有菜单信息
       请求地址:http://localhost:8080/api-u/sysmenus/all
       请求方式:Get
       请求参数:
       返回对象:List<SysMenu>
 
8.查询单个菜单信息
        请求地址:http://localhost:8080/api-u/sysmenus/{id}
        请求方式:Get
        请求参数:/{id} 菜单id
        返回对象:{
               "id": 101,
               "orgId": 101,
               "parentId": 0,
               "parentIds": ",0,",
               "orgIdsShow": null,
               "orgIdsHide": null,
               "name": "系统设置",
               "sort": 1,
               "url": "",
               "icon": "fa-gears",
               "type": 1,
               "isSystem": 0,
               "permission": "",
               "remarks": null,
               "enabled": true,
               "delFlag": "0",
               "createTime": 1516204800000,
               "updateTime": 1516204800000,
               "child": null
             }