File tree Expand file tree Collapse file tree 2 files changed +151
-143
lines changed
ZR.Admin.WebApi/Controllers/System Expand file tree Collapse file tree 2 files changed +151
-143
lines changed Original file line number Diff line number Diff line change @@ -29,17 +29,29 @@ public SysMenuController(
2929 }
3030
3131 /// <summary>
32- /// 获取菜单列表
32+ /// 获取菜单树列表
3333 /// </summary>
3434 /// <returns></returns>
3535 [ ActionPermissionFilter ( Permission = "system:menu:list" ) ]
36- [ HttpGet ( "list " ) ]
36+ [ HttpGet ( "treelist " ) ]
3737 public IActionResult TreeMenuList ( [ FromQuery ] MenuQueryDto menu )
3838 {
3939 long userId = HttpContext . GetUId ( ) ;
4040 return SUCCESS ( sysMenuService . SelectTreeMenuList ( menu , userId ) , "yyyy-MM-dd HH:mm:ss" ) ;
4141 }
4242
43+ /// <summary>
44+ /// 获取菜单列表
45+ /// </summary>
46+ /// <returns></returns>
47+ [ ActionPermissionFilter ( Permission = "system:menu:list" ) ]
48+ [ HttpGet ( "list" ) ]
49+ public IActionResult MenuList ( [ FromQuery ] MenuQueryDto menu )
50+ {
51+ long userId = HttpContext . GetUId ( ) ;
52+ return SUCCESS ( sysMenuService . SelectMenuList ( menu , userId ) , "yyyy-MM-dd HH:mm:ss" ) ;
53+ }
54+
4355 /// <summary>
4456 /// 根据菜单编号获取详细信息
4557 /// </summary>
You can’t perform that action at this time.
0 commit comments