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:
@@ -0,0 +1,6 @@
|
||||
namespace DocumentOperator.API.Configuration
|
||||
{
|
||||
public class SerilogConfiguration
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace DocumentOperator.API.Configuration
|
||||
{
|
||||
public class SwaggerConfiguration
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -19,8 +19,4 @@
|
||||
<ProjectReference Include="..\DocumentOperator.Infrastructure\DocumentOperator.Infrastructure.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Controllers\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
6
DocumentOperator.API/Endpoints/v1/DocumentEndpoints.cs
Normal file
6
DocumentOperator.API/Endpoints/v1/DocumentEndpoints.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
namespace DocumentOperator.API.Endpoints.v1
|
||||
{
|
||||
public class DocumentEndpoints
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace DocumentOperator.API.Middleware
|
||||
{
|
||||
public class ExceptionHandlingMiddleware
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace DocumentOperator.API.Middleware
|
||||
{
|
||||
public class RequestLoggingMiddleware
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace DocumentOperator.API.Middleware
|
||||
{
|
||||
public class TenantResolutionMiddleware
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user