Initial Argus web catalog

This commit is contained in:
Курнат Андрей
2026-06-20 19:55:11 +03:00
commit 5f80c4bf6a
30 changed files with 2620 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
namespace Argus.Domain;
public sealed class AppRelease
{
public Guid Id { get; set; }
public Guid CatalogAppId { get; set; }
public CatalogApp CatalogApp { get; set; } = null!;
public string Version { get; set; } = string.Empty;
public string Channel { get; set; } = "stable";
public string Platform { get; set; } = "generic";
public string PackageKind { get; set; } = "binary";
public string OriginalFileName { get; set; } = string.Empty;
public string StoredRelativePath { get; set; } = string.Empty;
public string ContentType { get; set; } = "application/octet-stream";
public long PackageSizeBytes { get; set; }
public string Sha256 { get; set; } = string.Empty;
public string? Notes { get; set; }
public DateTimeOffset PublishedAt { get; set; }
}
+26
View File
@@ -0,0 +1,26 @@
namespace Argus.Domain;
public sealed class CatalogApp
{
public Guid Id { get; set; }
public string Slug { get; set; } = string.Empty;
public string Name { get; set; } = string.Empty;
public string Summary { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string? RepositoryUrl { get; set; }
public string? HomepageUrl { get; set; }
public bool IsListed { get; set; } = true;
public DateTimeOffset CreatedAt { get; set; }
public DateTimeOffset UpdatedAt { get; set; }
public ICollection<AppRelease> Releases { get; set; } = new List<AppRelease>();
}