Refactor project structure and add new features

Restructured project files across all layers:
- Removed `Controllers` folder reference from `DocumentOperator.API.csproj`.
- Added folder structure to `DocumentOperator.Application`, `DocumentOperator.Domain`, and `DocumentOperator.Infrastructure` projects for better organization.

Introduced new API configurations and middleware:
- Added `SerilogConfiguration` and `SwaggerConfiguration` classes.
- Added `ExceptionHandlingMiddleware`, `RequestLoggingMiddleware`, and `TenantResolutionMiddleware`.

Implemented new document processing feature:
- Added `ProcessDocumentCommand`, `ProcessDocumentHandler`, and `ProcessDocumentValidator` classes in the application layer.
This commit is contained in:
OlgunR
2026-06-15 16:21:43 +02:00
parent b25d593771
commit 297f760e7f
13 changed files with 101 additions and 4 deletions

View File

@@ -0,0 +1,6 @@
namespace DocumentOperator.API.Configuration
{
public class SerilogConfiguration
{
}
}

View File

@@ -0,0 +1,6 @@
namespace DocumentOperator.API.Configuration
{
public class SwaggerConfiguration
{
}
}

View File

@@ -19,8 +19,4 @@
<ProjectReference Include="..\DocumentOperator.Infrastructure\DocumentOperator.Infrastructure.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Controllers\" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,6 @@
namespace DocumentOperator.API.Endpoints.v1
{
public class DocumentEndpoints
{
}
}

View File

@@ -0,0 +1,6 @@
namespace DocumentOperator.API.Middleware
{
public class ExceptionHandlingMiddleware
{
}
}

View File

@@ -0,0 +1,6 @@
namespace DocumentOperator.API.Middleware
{
public class RequestLoggingMiddleware
{
}
}

View File

@@ -0,0 +1,6 @@
namespace DocumentOperator.API.Middleware
{
public class TenantResolutionMiddleware
{
}
}

View File

@@ -17,4 +17,17 @@
<ProjectReference Include="..\DocumentOperator.Domain\DocumentOperator.Domain.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Common\Interfaces\" />
<Folder Include="Common\Behaviors\" />
<Folder Include="Common\DTOs\" />
<Folder Include="Common\Mappings\" />
<Folder Include="DependencyInjection\" />
<Folder Include="Features\Documents\ExtractAttachments\" />
<Folder Include="Features\Documents\ConcatenatePdfs\" />
<Folder Include="Features\Documents\ApplyStamp\" />
<Folder Include="Features\Documents\EmbedCertificate\" />
<Folder Include="Features\Documents\ValidatePdf\" />
</ItemGroup>
</Project>

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DocumentOperator.Application.Features.Documents.ProcessDocument
{
internal class ProcessDocumentCommand
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DocumentOperator.Application.Features.Documents.ProcessDocument
{
internal class ProcessDocumentHandler
{
}
}

View File

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DocumentOperator.Application.Features.Documents.ProcessDocument
{
internal class ProcessDocumentValidator
{
}
}

View File

@@ -6,4 +6,12 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Folder Include="Common\Exceptions\" />
<Folder Include="Common\Results\" />
<Folder Include="Constants\" />
<Folder Include="Models\Enums\" />
<Folder Include="Models\ValueObjects\" />
</ItemGroup>
</Project>

View File

@@ -16,4 +16,12 @@
<ProjectReference Include="..\DocumentOperator.Domain\DocumentOperator.Domain.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="Configuration\" />
<Folder Include="DependencyInjection\" />
<Folder Include="Services\FileStorage\" />
<Folder Include="Services\DocumentValidation\" />
<Folder Include="Services\PdfProcessing\" />
</ItemGroup>
</Project>