版本260406
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user