changed.修改了PLONDS上传逻辑

This commit is contained in:
lincube
2026-06-01 16:53:23 +08:00
parent a2ac302ee7
commit 131043fe37
17 changed files with 1370 additions and 593 deletions

View File

@@ -0,0 +1,24 @@
using System.Text.Json.Serialization;
namespace Plonds.Shared.Models;
public sealed record PlondsDownloadInfo(
string ReleaseTag,
[property: JsonPropertyName("github")]
PlondsGitHubDownloadInfo GitHub,
PlondsS3DownloadInfo S3);
public sealed record PlondsGitHubDownloadInfo(
string ReleaseUrl,
string ManifestUrl,
string ChangedZipUrl);
public sealed record PlondsS3DownloadInfo(
string Bucket,
string Prefix,
string ManifestKey,
string ManifestUrl,
string ChangedZipKey,
string ChangedZipUrl,
string ChangedFolderKey,
string ChangedFolderUrl);

View File

@@ -11,4 +11,5 @@ public sealed record PlondsManifest(
DateTimeOffset UpdatedAt,
IReadOnlyDictionary<string, PlondsFileEntry> FilesMap,
IReadOnlyDictionary<string, PlondsChangedFileEntry> ChangedFilesMap,
IReadOnlyDictionary<string, string> Checksums);
IReadOnlyDictionary<string, string> Checksums,
PlondsDownloadInfo? Downloads = null);