feat: Implementierung von Repositories, Services und DTOs für alle Entitäten
- Notwendige Repositories, Services und DTOs für jede Entität, die SQL-Tabellen entspricht, unter Verwendung der WebCore-Bibliothek erstellt. - Mapping-Profile für effiziente Datentransformation definiert. - Dependency Injections für Repositories und Services als scoped konfiguriert, um eine korrekte Lebenszyklusverwaltung zu gewährleisten.
This commit is contained in:
@@ -1,15 +1,13 @@
|
||||
namespace EnvelopeGenerator.Application.DTOs
|
||||
{
|
||||
public record ConfigDto
|
||||
{
|
||||
public string DocumentPath { get; init; }
|
||||
public int SendingProfile { get; init; }
|
||||
public string SignatureHost { get; init; }
|
||||
public string ExternalProgramName { get; init; }
|
||||
public string ExportPath { get; init; }
|
||||
public string DocumentPathDmz { get; init; }
|
||||
public string ExportPathDmz { get; init; }
|
||||
public string SignedMailPath { get; init; }
|
||||
public string DocumentPathMoveAftsend { get; init; }
|
||||
}
|
||||
public record ConfigDto(
|
||||
string DocumentPath,
|
||||
int SendingProfile,
|
||||
string SignatureHost,
|
||||
string ExternalProgramName,
|
||||
string ExportPath,
|
||||
string DocumentPathDmz,
|
||||
string ExportPathDmz,
|
||||
string SignedMailPath,
|
||||
string DocumentPathMoveAftsend);
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
namespace EnvelopeGenerator.Application.DTOs
|
||||
{
|
||||
public record DocumentReceiverElementDto(
|
||||
int Guid,
|
||||
int DocumentId,
|
||||
int ReceiverId,
|
||||
int ElementType,
|
||||
float PositionX,
|
||||
float PositionY,
|
||||
float Width,
|
||||
float Height,
|
||||
int Page,
|
||||
bool Required,
|
||||
string Tooltip,
|
||||
bool ReadOnly,
|
||||
int AnnotationIndex,
|
||||
DateTime AddedWhen,
|
||||
DateTime? ChangedWhen,
|
||||
EnvelopeDocumentDto? Document,
|
||||
EnvelopeReceiverDto? Receiver);
|
||||
}
|
||||
12
EnvelopeGenerator.Application/DTOs/DocumentStatusDto.cs
Normal file
12
EnvelopeGenerator.Application/DTOs/DocumentStatusDto.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace EnvelopeGenerator.Application.DTOs
|
||||
{
|
||||
public record DocumentStatusDto(
|
||||
int Guid,
|
||||
int EnvelopeId,
|
||||
int ReceiverId,
|
||||
int Status,
|
||||
DateTime? StatusChangedWhen,
|
||||
string Value,
|
||||
DateTime AddedWhen,
|
||||
DateTime? ChangedWhen);
|
||||
}
|
||||
8
EnvelopeGenerator.Application/DTOs/EmailTemplateDto.cs
Normal file
8
EnvelopeGenerator.Application/DTOs/EmailTemplateDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace EnvelopeGenerator.Application.DTOs
|
||||
{
|
||||
public record EmailTemplateDto(
|
||||
int Guid,
|
||||
string Name,
|
||||
string Body,
|
||||
string Subject);
|
||||
}
|
||||
12
EnvelopeGenerator.Application/DTOs/EnvelopeCertificateDto.cs
Normal file
12
EnvelopeGenerator.Application/DTOs/EnvelopeCertificateDto.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace EnvelopeGenerator.Application.DTOs
|
||||
{
|
||||
public record EnvelopeCertificateDto(
|
||||
int Guid,
|
||||
int EnvelopeId,
|
||||
string EnvelopeUuid,
|
||||
string EnvelopeSubject,
|
||||
int CreatorId,
|
||||
string CreatorName,
|
||||
string CreatorEmail,
|
||||
int EnvelopeStatus);
|
||||
}
|
||||
27
EnvelopeGenerator.Application/DTOs/EnvelopeDto.cs
Normal file
27
EnvelopeGenerator.Application/DTOs/EnvelopeDto.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace EnvelopeGenerator.Application.DTOs
|
||||
{
|
||||
public record EnvelopeDto(
|
||||
int Guid,
|
||||
int UserId,
|
||||
int Status,
|
||||
string EnvelopeUuid,
|
||||
string Message,
|
||||
DateTime? ExpiresWhen,
|
||||
DateTime? ExpiresWarningWhen,
|
||||
DateTime AddedWhen,
|
||||
DateTime? ChangedWhen,
|
||||
string Title,
|
||||
int? ContractType,
|
||||
string Language,
|
||||
bool? SendReminderEmails,
|
||||
int? FirstReminderDays,
|
||||
int? ReminderIntervalDays,
|
||||
int? EnvelopeType,
|
||||
int? CertificationType,
|
||||
bool? UseAccessCode,
|
||||
int? FinalEmailToCreator,
|
||||
int? FinalEmailToReceivers,
|
||||
int? ExpiresWhenDays,
|
||||
int? ExpiresWarningWhenDays,
|
||||
bool DmzMoved);
|
||||
}
|
||||
10
EnvelopeGenerator.Application/DTOs/EnvelopeHistoryDto.cs
Normal file
10
EnvelopeGenerator.Application/DTOs/EnvelopeHistoryDto.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace EnvelopeGenerator.Application.DTOs
|
||||
{
|
||||
public record EnvelopeHistoryDto(
|
||||
long Guid,
|
||||
int EnvelopeId,
|
||||
string UserReference,
|
||||
int Status,
|
||||
DateTime AddedWhen,
|
||||
DateTime? ActionDate);
|
||||
}
|
||||
14
EnvelopeGenerator.Application/DTOs/EnvelopeReceiverDto.cs
Normal file
14
EnvelopeGenerator.Application/DTOs/EnvelopeReceiverDto.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace EnvelopeGenerator.Application.DTOs
|
||||
{
|
||||
public record EnvelopeReceiverDto(
|
||||
int EnvelopeId,
|
||||
int ReceiverId,
|
||||
int Sequence,
|
||||
string Name,
|
||||
string JobTitle,
|
||||
string CompanyName,
|
||||
string PrivateMessage,
|
||||
string AccessCode,
|
||||
DateTime AddedWhen,
|
||||
DateTime? ChangedWhen);
|
||||
}
|
||||
19
EnvelopeGenerator.Application/DTOs/EnvelopeTypeDto.cs
Normal file
19
EnvelopeGenerator.Application/DTOs/EnvelopeTypeDto.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace EnvelopeGenerator.Application.DTOs
|
||||
{
|
||||
public record EnvelopeTypeDto(
|
||||
int Guid,
|
||||
string Title,
|
||||
string Language,
|
||||
int? ExpiresDays,
|
||||
int? CertificationType,
|
||||
bool? UseAccessCode,
|
||||
int? FinalEmailToCreator,
|
||||
int? FinalEmailToReceivers,
|
||||
DateTime AddedWhen,
|
||||
DateTime? ChangedWhen,
|
||||
int? ExpiresWarningDays,
|
||||
bool? SendReminderEmails,
|
||||
int? FirstReminderDays,
|
||||
int? ReminderIntervalDays,
|
||||
int? ContractType);
|
||||
}
|
||||
8
EnvelopeGenerator.Application/DTOs/ReceiverDto.cs
Normal file
8
EnvelopeGenerator.Application/DTOs/ReceiverDto.cs
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace EnvelopeGenerator.Application.DTOs
|
||||
{
|
||||
public record ReceiverDto(
|
||||
int Guid,
|
||||
string EmailAddress,
|
||||
string Signature,
|
||||
DateTime AddedWhen);
|
||||
}
|
||||
11
EnvelopeGenerator.Application/DTOs/UserReceiverDto.cs
Normal file
11
EnvelopeGenerator.Application/DTOs/UserReceiverDto.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace EnvelopeGenerator.Application.DTOs
|
||||
{
|
||||
public record UserReceiverDto(
|
||||
int Guid,
|
||||
int UserId,
|
||||
int ReceiverId,
|
||||
string Name,
|
||||
string CompanyName,
|
||||
string JobTitle,
|
||||
DateTime AddedWhen);
|
||||
}
|
||||
Reference in New Issue
Block a user