版本260406

This commit is contained in:
2026-04-06 22:04:05 +08:00
parent 7dc5e73af7
commit 0b150470be
216 changed files with 98993 additions and 33 deletions

View File

@@ -0,0 +1,63 @@
namespace OrpaonVision.Core.Training.Contracts;
/// <summary>
/// 模型包回滚结果。
/// </summary>
public sealed class ModelPackageRollbackResultDto
{
/// <summary>
/// 目标模型包ID。
/// </summary>
public Guid TargetModelPackageId { get; init; }
/// <summary>
/// 回滚前模型包ID。
/// </summary>
public Guid? PreviousModelPackageId { get; init; }
/// <summary>
/// 回滚状态。
/// </summary>
public ModelPackageRollbackStatus Status { get; init; }
/// <summary>
/// 回滚消息。
/// </summary>
public string Message { get; init; } = string.Empty;
/// <summary>
/// 回滚原因。
/// </summary>
public string RollbackReason { get; init; } = string.Empty;
/// <summary>
/// 回滚时间UTC
/// </summary>
public DateTime RolledBackAtUtc { get; init; }
/// <summary>
/// 回滚者。
/// </summary>
public string RolledBackBy { get; init; } = string.Empty;
}
/// <summary>
/// 模型包回滚状态。
/// </summary>
public enum ModelPackageRollbackStatus
{
/// <summary>
/// 回滚中。
/// </summary>
RollingBack,
/// <summary>
/// 已回滚。
/// </summary>
RolledBack,
/// <summary>
/// 回滚失败。
/// </summary>
Failed
}