namespace OrpaonVision.Core.Training.Contracts.Commands; /// /// 创建运行时部署快照命令。 /// public sealed class CreateRuntimeDeploymentSnapshotCommand { /// /// 快照名称。 /// public string Name { get; init; } = string.Empty; /// /// 快照描述。 /// public string Description { get; init; } = string.Empty; /// /// 机种ID。 /// public Guid ProductTypeId { get; init; } /// /// 规则版本ID。 /// public Guid RuleVersionId { get; init; } /// /// 模型包版本ID。 /// public Guid ModelPackageVersionId { get; init; } /// /// 运行时参数版本ID。 /// public Guid RuntimeParameterVersionId { get; init; } /// /// 创建者。 /// public string CreatedBy { get; init; } = string.Empty; /// /// 快照元数据(JSON格式)。 /// public string MetadataJson { get; init; } = string.Empty; } /// /// 激活运行时部署快照命令。 /// public sealed class ActivateRuntimeDeploymentSnapshotCommand { /// /// 快照ID。 /// public Guid SnapshotId { get; init; } /// /// 激活者。 /// public string ActivatedBy { get; init; } = string.Empty; /// /// 激活原因。 /// public string Reason { get; init; } = string.Empty; } /// /// 回滚到运行时部署快照命令。 /// public sealed class RollbackToRuntimeDeploymentSnapshotCommand { /// /// 目标快照ID。 /// public Guid TargetSnapshotId { get; init; } /// /// 回滚者。 /// public string RolledBackBy { get; init; } = string.Empty; /// /// 回滚原因。 /// public string Reason { get; init; } = string.Empty; }