Example #1
0
        /// <summary>
        /// 获取用户的菜单
        /// </summary>
        /// <param name="uid"></param>
        /// <returns></returns>
        public async Task <MessageModel <SysMenuTreeVM> > GetUserMenuTree(string uid)
        {
            //判断当前用户
            var sysUser = await _sysUserRepository.QueryById(uid);

            if (sysUser == null)
            {
                return(MessageModel <SysMenuTreeVM> .Fail("不存在该用户"));
            }

            //查找对应用户的
            //先用全部凑合
            return(await GetMenuTree());
        }