refactor(AnnotationDto): split AnnotationDto into AnnotationCreateDto and AnnotationDto

- Introduced AnnotationCreateDto for creation-specific properties
- AnnotationDto now inherits from AnnotationCreateDto and includes Id, AddedWhen, ChangedWhen, and ChangedWho
- Added Type property to AnnotationCreateDto
 - remove CreateAnnotationCommand
This commit is contained in:
2025-10-21 11:42:01 +02:00
parent 0ca54fe1fe
commit 8ae0f79365
7 changed files with 31 additions and 186 deletions

View File

@@ -3,13 +3,8 @@
/// <summary>
///
/// </summary>
public record AnnotationDto
public record AnnotationCreateDto
{
/// <summary>
///
/// </summary>
public long Id { get; init; }
/// <summary>
///
/// </summary>
@@ -25,6 +20,22 @@ public record AnnotationDto
/// </summary>
public string Value { get; init; } = null!;
/// <summary>
///
/// </summary>
public string Type { get; init; } = null!;
}
/// <summary>
///
/// </summary>
public record AnnotationDto : AnnotationCreateDto
{
/// <summary>
///
/// </summary>
public long Id { get; init; }
/// <summary>
///
/// </summary>