/// <summary>
 /// 根据AccountUser获取用户对应菜单
 /// </summary>
 /// <param name="user">AccountUser</param>
 /// <returns>菜单集合</returns>
 public static List <AccountMenu> GetUserMenus(AccountUser user)
 {
     try
     {
         if (user == null)
         {
             throw new Exception("LoginUser is null");
         }
         return(factory.GetUserRoleMenus(user.userGuid, user.langCode));
     }
     catch (Exception ex)
     {
         LogHelper.WriteLog(new Log()
         {
             message = ex.Message
         }, "GetUserMenu");
         return(null);
     }
 }