版本260406
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
namespace OrpaonVision.Core.Training.Contracts;
|
||||
|
||||
/// <summary>
|
||||
/// 模型包导入结果。
|
||||
/// </summary>
|
||||
public sealed class ModelPackageImportResultDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 模型包ID。
|
||||
/// </summary>
|
||||
public Guid ModelPackageId { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 导入状态。
|
||||
/// </summary>
|
||||
public ModelPackageImportStatus Status { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 导入消息。
|
||||
/// </summary>
|
||||
public string Message { get; init; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 校验结果。
|
||||
/// </summary>
|
||||
public ModelPackageValidationResultDto? ValidationResult { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 导入时间(UTC)。
|
||||
/// </summary>
|
||||
public DateTime ImportedAtUtc { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// 导入者。
|
||||
/// </summary>
|
||||
public string ImportedBy { get; init; } = string.Empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 模型包导入状态。
|
||||
/// </summary>
|
||||
public enum ModelPackageImportStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// 导入中。
|
||||
/// </summary>
|
||||
Importing,
|
||||
|
||||
/// <summary>
|
||||
/// 已导入。
|
||||
/// </summary>
|
||||
Imported,
|
||||
|
||||
/// <summary>
|
||||
/// 已校验。
|
||||
/// </summary>
|
||||
Validated,
|
||||
|
||||
/// <summary>
|
||||
/// 校验失败。
|
||||
/// </summary>
|
||||
ValidationFailed,
|
||||
|
||||
/// <summary>
|
||||
/// 已拒绝。
|
||||
/// </summary>
|
||||
Rejected,
|
||||
|
||||
/// <summary>
|
||||
/// 已激活。
|
||||
/// </summary>
|
||||
Activated,
|
||||
|
||||
/// <summary>
|
||||
/// 已回滚。
|
||||
/// </summary>
|
||||
RolledBack
|
||||
}
|
||||
Reference in New Issue
Block a user