Пример #1
0
        public IActionResult MenusTree(SerchModel model)
        {
            var result = MenusLogic.MenusTree(model.comid, model.roleid);

            if (result == null)
            {
                return(Ok(Res.Fail("暂无数据")));
            }
            else
            {
                return(Ok(result));
            }
        }
Пример #2
0
        public IActionResult GetMenu( )
        {
            var result = MenusLogic.MenusTreeByRoleid("");

            //return Ok(Res.LayuiTable(MenusLogic.MenusTree("1", "1")));
            if (result == null)
            {
                return(Ok(Res.Fail("暂无数据")));
            }
            else
            {
                return(Ok(Res.Success(MenusLogic.MenusTree("1", "1"))));
            }
        }