This commit is contained in:
2026-03-29 23:17:20 +08:00
commit 7dc5e73af7
36 changed files with 1480 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
using OrpaonVision.Core.Enums;
namespace OrpaonVision.Core.Annotation.Contracts;
/// <summary>
/// 标注同步状态 DTO。
/// </summary>
public sealed class AnnotationSyncStatusDto
{
/// <summary>
/// 本地项目标识。
/// </summary>
public Guid ProjectId { get; init; }
/// <summary>
/// 本地标注任务标识。
/// </summary>
public Guid AnnotationTaskId { get; init; }
/// <summary>
/// 平台类型(当前固定为 Cvat
/// </summary>
public AnnotationPlatformEnum Platform { get; init; } = AnnotationPlatformEnum.Cvat;
/// <summary>
/// 同步状态。
/// </summary>
public AnnotationSyncStatusEnum SyncStatus { get; init; }
/// <summary>
/// 同步进度0~100
/// </summary>
public decimal ProgressPercent { get; init; }
/// <summary>
/// 最近一次同步时间UTC
/// </summary>
public DateTime? LastSyncedAtUtc { get; init; }
/// <summary>
/// 最近错误信息。
/// </summary>
public string? LastErrorMessage { get; init; }
}