Files
OrpaonVision/OrpaonVision.Core/Annotation/Contracts/SyncAnnotationProjectCommand.cs
2026-03-29 23:17:20 +08:00

47 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using OrpaonVision.Core.Enums;
namespace OrpaonVision.Core.Annotation.Contracts;
/// <summary>
/// 同步标注项目命令。
///
/// 当前版本约束:仅支持 CVAT。
/// </summary>
public sealed class SyncAnnotationProjectCommand
{
/// <summary>
/// 平台类型(当前固定为 Cvat
/// </summary>
public AnnotationPlatformEnum Platform { get; init; } = AnnotationPlatformEnum.Cvat;
/// <summary>
/// 本地项目标识。
/// </summary>
public Guid ProjectId { get; init; }
/// <summary>
/// 本地标注任务标识。
/// </summary>
public Guid AnnotationTaskId { get; init; }
/// <summary>
/// CVAT 服务地址,例如 http://127.0.0.1:8080。
/// </summary>
public string CvatServerEndpoint { get; init; } = string.Empty;
/// <summary>
/// CVAT 项目 ID。
/// </summary>
public long CvatProjectId { get; init; }
/// <summary>
/// CVAT 任务 ID。
/// </summary>
public long CvatTaskId { get; init; }
/// <summary>
/// 发起同步的用户。
/// </summary>
public string RequestedBy { get; init; } = string.Empty;
}