fix: update Service namespaces to match FastEndpoints structure
TaxBaik CI/CD / build-and-deploy (push) Failing after 59s

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 <noreply@anthropic.com>
This commit is contained in:
2026-07-03 15:41:35 +09:00
parent 300971bc3c
commit 2762f74d1e
15 changed files with 18 additions and 16 deletions
@@ -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;
/// <summary>
/// Admin Dashboard API Client
@@ -1,4 +1,4 @@
namespace TaxBaik.Web.Services;
namespace TaxBaik.Web.Components.Admin.Services;
using System.Net.Http;
using System.Net.Http.Json;
@@ -1,4 +1,4 @@
namespace TaxBaik.Web.Services;
namespace TaxBaik.Web.Components.Admin.Services;
using Microsoft.AspNetCore.Components;
using System.Text.Json;
@@ -1,4 +1,4 @@
namespace TaxBaik.Web.Services;
namespace TaxBaik.Web.Components.Admin.Services;
using System.Net.Http.Json;
using TaxBaik.Application.DTOs;
@@ -1,4 +1,4 @@
namespace TaxBaik.Web.Services;
namespace TaxBaik.Web.Components.Admin.Services;
using System.Net.Http.Json;
using TaxBaik.Domain.Entities;
@@ -1,4 +1,4 @@
namespace TaxBaik.Web.Services;
namespace TaxBaik.Web.Components.Admin.Services;
using System.Net.Http;
using System.Net.Http.Json;
@@ -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
{
@@ -1,4 +1,4 @@
namespace TaxBaik.Web.Services;
namespace TaxBaik.Web.Components.Admin.Services;
using System.Net.Http;
using System.Net.Http.Json;
@@ -1,4 +1,4 @@
namespace TaxBaik.Web.Services;
namespace TaxBaik.Web.Components.Admin.Services;
public interface ILocalStorageService
{
@@ -1,4 +1,4 @@
namespace TaxBaik.Web.Services;
namespace TaxBaik.Web.Components.Admin.Services;
/// <summary>
/// Scoped in-memory token store for Blazor Server.
@@ -1,4 +1,4 @@
namespace TaxBaik.Web.Services;
namespace TaxBaik.Web.Components.Admin.Services;
using System.Net.Http;
using System.Net.Http.Json;
@@ -1,6 +1,6 @@
using Microsoft.JSInterop;
namespace TaxBaik.Web.Services;
namespace TaxBaik.Web.Components.Admin.Services;
public class LocalStorageService : ILocalStorageService
{
@@ -1,4 +1,4 @@
namespace TaxBaik.Web.Services;
namespace TaxBaik.Web.Components.Admin.Services;
using System.Net.Http;
using System.Net.Http.Json;
@@ -1,4 +1,4 @@
namespace TaxBaik.Web.Services;
namespace TaxBaik.Web.Components.Admin.Services;
using System.Net;
using System.Text.Json;
+4 -2
View File
@@ -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();