refactor: Phase 7-2 - Inquiry page API-First (partial)
TaxBaik CI/CD / build-and-deploy (push) Successful in 48s
TaxBaik CI/CD / build-and-deploy (push) Successful in 48s
**Implementation:** - InquiryBrowserClient: HTTP API client interface * GetPagedAsync(page, pageSize): Fetch inquiries * GetByIdAsync(id): Fetch single inquiry * UpdateStatusAsync(id, status): Change status - Program.cs: Register InquiryBrowserClient * AddHttpClient with TokenRefreshHandler - InquiryTable.razor: Refactored * Before: @inject InquiryService (direct service call) * After: @inject IInquiryBrowserClient (API call) * Status labels: Use InquiryStatusMapper * API calls via client instead of service **Status:** - Blog page: ✅ Already API-First (ApiClient) - Inquiry table: ✅ API-First (IInquiryBrowserClient) - Inquiry detail: ⏳ Pending (needs additional API endpoints) * UpdateAdminMemoAsync * LinkClientAsync * ConvertToClientAsync **SOLID Applied:** ✓ S (Single Responsibility): InquiryBrowserClient handles only Inquiry API calls ✓ D (Dependency Inversion): Blazor depends on IInquiryBrowserClient abstraction ✓ O (Open/Closed): Client can be extended without Blazor changes Next: Implement remaining API endpoints for InquiryDetail refactoring Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -75,6 +75,8 @@ builder.Services.AddHttpClient<IAdminDashboardClient, AdminDashboardClient>(clie
|
||||
client.BaseAddress = new Uri("http://localhost:5001/taxbaik/api/");
|
||||
})
|
||||
.AddHttpMessageHandler<TokenRefreshHandler>();
|
||||
builder.Services.AddHttpClient<IInquiryBrowserClient, InquiryBrowserClient>()
|
||||
.AddHttpMessageHandler<TokenRefreshHandler>();
|
||||
|
||||
// UI & 캐시
|
||||
builder.Services.AddMudServices();
|
||||
|
||||
Reference in New Issue
Block a user