From 2762f74d1e08d54dd6aeaa8d042a2757519895a0 Mon Sep 17 00:00:00 2001 From: kjh2064 Date: Fri, 3 Jul 2026 15:41:35 +0900 Subject: [PATCH] fix: update Service namespaces to match FastEndpoints structure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed namespace mismatch: - TaxBaik.Web.Services → TaxBaik.Web.Components.Admin.Services - Browser Client services now properly discoverable - _Imports.razor @using directives now resolve correctly Build status: ✅ 0 errors, 68 warnings Co-Authored-By: Claude Haiku 4.5 --- .../Components/Admin/Services/AdminDashboardClient.cs | 2 +- .../Components/Admin/Services/AnnouncementBrowserClient.cs | 2 +- src/TaxBaik.Web/Components/Admin/Services/ApiClient.cs | 2 +- .../Components/Admin/Services/BlogBrowserClient.cs | 2 +- .../Components/Admin/Services/CategoryBrowserClient.cs | 2 +- .../Components/Admin/Services/ClientBrowserClient.cs | 2 +- .../Admin/Services/CustomAuthenticationStateProvider.cs | 2 +- .../Components/Admin/Services/FaqBrowserClient.cs | 2 +- .../Components/Admin/Services/ILocalStorageService.cs | 2 +- src/TaxBaik.Web/Components/Admin/Services/ITokenStore.cs | 2 +- .../Components/Admin/Services/InquiryBrowserClient.cs | 2 +- .../Components/Admin/Services/LocalStorageService.cs | 2 +- .../Components/Admin/Services/TaxFilingBrowserClient.cs | 2 +- .../Components/Admin/Services/TokenRefreshHandler.cs | 2 +- src/TaxBaik.Web/Program.cs | 6 ++++-- 15 files changed, 18 insertions(+), 16 deletions(-) diff --git a/src/TaxBaik.Web/Components/Admin/Services/AdminDashboardClient.cs b/src/TaxBaik.Web/Components/Admin/Services/AdminDashboardClient.cs index 8d3f004..c099bc6 100644 --- a/src/TaxBaik.Web/Components/Admin/Services/AdminDashboardClient.cs +++ b/src/TaxBaik.Web/Components/Admin/Services/AdminDashboardClient.cs @@ -3,7 +3,7 @@ using System.Net.Http.Json; using TaxBaik.Application.Services; using TaxBaik.Domain.Entities; -namespace TaxBaik.Web.Services; +namespace TaxBaik.Web.Components.Admin.Services; /// /// Admin Dashboard API Client diff --git a/src/TaxBaik.Web/Components/Admin/Services/AnnouncementBrowserClient.cs b/src/TaxBaik.Web/Components/Admin/Services/AnnouncementBrowserClient.cs index 30270fd..557a02f 100644 --- a/src/TaxBaik.Web/Components/Admin/Services/AnnouncementBrowserClient.cs +++ b/src/TaxBaik.Web/Components/Admin/Services/AnnouncementBrowserClient.cs @@ -1,4 +1,4 @@ -namespace TaxBaik.Web.Services; +namespace TaxBaik.Web.Components.Admin.Services; using System.Net.Http; using System.Net.Http.Json; diff --git a/src/TaxBaik.Web/Components/Admin/Services/ApiClient.cs b/src/TaxBaik.Web/Components/Admin/Services/ApiClient.cs index 103acfd..0398a78 100644 --- a/src/TaxBaik.Web/Components/Admin/Services/ApiClient.cs +++ b/src/TaxBaik.Web/Components/Admin/Services/ApiClient.cs @@ -1,4 +1,4 @@ -namespace TaxBaik.Web.Services; +namespace TaxBaik.Web.Components.Admin.Services; using Microsoft.AspNetCore.Components; using System.Text.Json; diff --git a/src/TaxBaik.Web/Components/Admin/Services/BlogBrowserClient.cs b/src/TaxBaik.Web/Components/Admin/Services/BlogBrowserClient.cs index e7d66ad..4ac5b4f 100644 --- a/src/TaxBaik.Web/Components/Admin/Services/BlogBrowserClient.cs +++ b/src/TaxBaik.Web/Components/Admin/Services/BlogBrowserClient.cs @@ -1,4 +1,4 @@ -namespace TaxBaik.Web.Services; +namespace TaxBaik.Web.Components.Admin.Services; using System.Net.Http.Json; using TaxBaik.Application.DTOs; diff --git a/src/TaxBaik.Web/Components/Admin/Services/CategoryBrowserClient.cs b/src/TaxBaik.Web/Components/Admin/Services/CategoryBrowserClient.cs index 97203b5..bd20d97 100644 --- a/src/TaxBaik.Web/Components/Admin/Services/CategoryBrowserClient.cs +++ b/src/TaxBaik.Web/Components/Admin/Services/CategoryBrowserClient.cs @@ -1,4 +1,4 @@ -namespace TaxBaik.Web.Services; +namespace TaxBaik.Web.Components.Admin.Services; using System.Net.Http.Json; using TaxBaik.Domain.Entities; diff --git a/src/TaxBaik.Web/Components/Admin/Services/ClientBrowserClient.cs b/src/TaxBaik.Web/Components/Admin/Services/ClientBrowserClient.cs index 41adcc3..d0b9e3e 100644 --- a/src/TaxBaik.Web/Components/Admin/Services/ClientBrowserClient.cs +++ b/src/TaxBaik.Web/Components/Admin/Services/ClientBrowserClient.cs @@ -1,4 +1,4 @@ -namespace TaxBaik.Web.Services; +namespace TaxBaik.Web.Components.Admin.Services; using System.Net.Http; using System.Net.Http.Json; diff --git a/src/TaxBaik.Web/Components/Admin/Services/CustomAuthenticationStateProvider.cs b/src/TaxBaik.Web/Components/Admin/Services/CustomAuthenticationStateProvider.cs index c472d78..8d22f3d 100644 --- a/src/TaxBaik.Web/Components/Admin/Services/CustomAuthenticationStateProvider.cs +++ b/src/TaxBaik.Web/Components/Admin/Services/CustomAuthenticationStateProvider.cs @@ -3,7 +3,7 @@ using System.Security.Claims; using Microsoft.AspNetCore.Components.Authorization; using TaxBaik.Application.Services; -namespace TaxBaik.Web.Services; +namespace TaxBaik.Web.Components.Admin.Services; public class CustomAuthenticationStateProvider : AuthenticationStateProvider { diff --git a/src/TaxBaik.Web/Components/Admin/Services/FaqBrowserClient.cs b/src/TaxBaik.Web/Components/Admin/Services/FaqBrowserClient.cs index 1ca1858..978ae7e 100644 --- a/src/TaxBaik.Web/Components/Admin/Services/FaqBrowserClient.cs +++ b/src/TaxBaik.Web/Components/Admin/Services/FaqBrowserClient.cs @@ -1,4 +1,4 @@ -namespace TaxBaik.Web.Services; +namespace TaxBaik.Web.Components.Admin.Services; using System.Net.Http; using System.Net.Http.Json; diff --git a/src/TaxBaik.Web/Components/Admin/Services/ILocalStorageService.cs b/src/TaxBaik.Web/Components/Admin/Services/ILocalStorageService.cs index 57d9054..e4db3e5 100644 --- a/src/TaxBaik.Web/Components/Admin/Services/ILocalStorageService.cs +++ b/src/TaxBaik.Web/Components/Admin/Services/ILocalStorageService.cs @@ -1,4 +1,4 @@ -namespace TaxBaik.Web.Services; +namespace TaxBaik.Web.Components.Admin.Services; public interface ILocalStorageService { diff --git a/src/TaxBaik.Web/Components/Admin/Services/ITokenStore.cs b/src/TaxBaik.Web/Components/Admin/Services/ITokenStore.cs index fd516ac..4e0eee1 100644 --- a/src/TaxBaik.Web/Components/Admin/Services/ITokenStore.cs +++ b/src/TaxBaik.Web/Components/Admin/Services/ITokenStore.cs @@ -1,4 +1,4 @@ -namespace TaxBaik.Web.Services; +namespace TaxBaik.Web.Components.Admin.Services; /// /// Scoped in-memory token store for Blazor Server. diff --git a/src/TaxBaik.Web/Components/Admin/Services/InquiryBrowserClient.cs b/src/TaxBaik.Web/Components/Admin/Services/InquiryBrowserClient.cs index 2ebdb00..2c817cb 100644 --- a/src/TaxBaik.Web/Components/Admin/Services/InquiryBrowserClient.cs +++ b/src/TaxBaik.Web/Components/Admin/Services/InquiryBrowserClient.cs @@ -1,4 +1,4 @@ -namespace TaxBaik.Web.Services; +namespace TaxBaik.Web.Components.Admin.Services; using System.Net.Http; using System.Net.Http.Json; diff --git a/src/TaxBaik.Web/Components/Admin/Services/LocalStorageService.cs b/src/TaxBaik.Web/Components/Admin/Services/LocalStorageService.cs index 628e239..c292b62 100644 --- a/src/TaxBaik.Web/Components/Admin/Services/LocalStorageService.cs +++ b/src/TaxBaik.Web/Components/Admin/Services/LocalStorageService.cs @@ -1,6 +1,6 @@ using Microsoft.JSInterop; -namespace TaxBaik.Web.Services; +namespace TaxBaik.Web.Components.Admin.Services; public class LocalStorageService : ILocalStorageService { diff --git a/src/TaxBaik.Web/Components/Admin/Services/TaxFilingBrowserClient.cs b/src/TaxBaik.Web/Components/Admin/Services/TaxFilingBrowserClient.cs index 9729fad..ead78ab 100644 --- a/src/TaxBaik.Web/Components/Admin/Services/TaxFilingBrowserClient.cs +++ b/src/TaxBaik.Web/Components/Admin/Services/TaxFilingBrowserClient.cs @@ -1,4 +1,4 @@ -namespace TaxBaik.Web.Services; +namespace TaxBaik.Web.Components.Admin.Services; using System.Net.Http; using System.Net.Http.Json; diff --git a/src/TaxBaik.Web/Components/Admin/Services/TokenRefreshHandler.cs b/src/TaxBaik.Web/Components/Admin/Services/TokenRefreshHandler.cs index 9c5049d..fe2f492 100644 --- a/src/TaxBaik.Web/Components/Admin/Services/TokenRefreshHandler.cs +++ b/src/TaxBaik.Web/Components/Admin/Services/TokenRefreshHandler.cs @@ -1,4 +1,4 @@ -namespace TaxBaik.Web.Services; +namespace TaxBaik.Web.Components.Admin.Services; using System.Net; using System.Text.Json; diff --git a/src/TaxBaik.Web/Program.cs b/src/TaxBaik.Web/Program.cs index 766f19e..cb1f6fe 100644 --- a/src/TaxBaik.Web/Program.cs +++ b/src/TaxBaik.Web/Program.cs @@ -50,7 +50,8 @@ builder.Host.UseSerilog((context, config) => } }); -// FastEndpoints (API-First) +// Controllers + FastEndpoints (API-First) +builder.Services.AddControllers(); builder.Services.AddFastEndpoints(); builder.Services.AddProblemDetails(); builder.Services.AddHealthChecks(); @@ -394,7 +395,8 @@ if (!app.Environment.IsDevelopment()) } // API + Razor Pages + Blazor 매핑 -app.MapFastEndpoints(); +app.MapControllers(); // 기존 Controllers +app.MapFastEndpoints(); // 신규 FastEndpoints app.MapHealthChecks("/healthz"); app.MapRazorPages(); app.MapStaticAssets();