public async Task <BooleanResult> Privacy() { if (User.Identity.IsAuthenticated) { var user = User.UCenter(); var count = await _msgApiService.UnreadCount(user.SpaceUserId); return(BooleanResult <Privacy> .Succeed(new Privacy(user.DisplayName, count, user.Alias, user.IconName))); } else { return(BooleanResult.Fail("未登录")); } }