Refactor AnnotationCreateDto and update appsettings.json

Refactored the `AnnotationCreateDto` class:
- Changed `ElementId` from `int` to `long` and made it mutable.
- Marked `Name`, `Value`, and `Type` as `[Obsolete]` with defaults.
- Added `[Obsolete]` attributes to `Width` and `Height`.
- Introduced a new `Page` property to replace `SignatureDto`.

Updated `appsettings.json`:
- Set `Api.BaseUrl` to an empty string.
This commit is contained in:
2026-05-31 11:10:31 +02:00
parent d9d731ab59
commit d97268c18c
2 changed files with 21 additions and 5 deletions

View File

@@ -8,22 +8,31 @@ public record AnnotationCreateDto
/// <summary>
///
/// </summary>
public int ElementId { get; init; }
public long Id { get; set; }
/// <summary>
///
/// </summary>
public string Name { get; init; } = null!;
[Obsolete("Not required for DevExpress")]
public int ElementId { get; init; } = -1;
/// <summary>
///
/// </summary>
public string Value { get; init; } = null!;
[Obsolete("Not required for DevExpress")]
public string Name { get; init; } = string.Empty;
/// <summary>
///
/// </summary>
public string Type { get; init; } = null!;
[Obsolete("Not required for DevExpress")]
public string Value { get; init; } = string.Empty;
/// <summary>
///
/// </summary>
[Obsolete("Not required for DevExpress")]
public string Type { get; init; } = string.Empty;
/// <summary>
///
@@ -38,12 +47,19 @@ public record AnnotationCreateDto
/// <summary>
///
/// </summary>
[Obsolete("Not required for DevExpress")]
public double? Width { get; init; }
/// <summary>
///
/// </summary>
[Obsolete("Not required for DevExpress")]
public double? Height { get; init; }
/// <summary>
/// Added to eliminate the need for SignatureDto in DevExpress
/// </summary>
public int? Page { get; init; }
}
/// <summary>

View File

@@ -1,6 +1,6 @@
{
"Api": {
"BaseUrl": "https://localhost:8088",
"BaseUrl": "",
"ForceToUseFakeDocument": true
}
}