Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 39 additions & 11 deletions src/Server/DTOs/VerificationResultDTO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ namespace ServerSample.DTOs;
public record VerificationResultDTO
{
/// <summary>
/// 用于更新结果上报
/// 记录 ID,用于更新结果上报
/// </summary>
public int RecordId { get; set; }

/// <summary>
/// 包名称
/// </summary>
public string? Name { get; set; }

/// <summary>
/// 补丁包hash值
/// 补丁包 SHA256 哈希值
/// </summary>
public string? Hash { get; set; }

Expand All @@ -27,40 +27,68 @@ public record VerificationResultDTO
/// </summary>
public string? Url { get; set; }

/// <summary>
/// 签名 URL 过期时间 (UTC)
/// </summary>
public DateTime? UrlExpireTimeUtc { get; set; }

/// <summary>
/// 版本号
/// </summary>
public string? Version { get; set; }

/// <summary>
/// 应用类型
/// 应用类型: 1=Client(主应用), 2=Upgrade(升级器)
/// </summary>
public int? AppType { get; set; }

/// <summary>
/// 平台
/// 系统平台: 1=Windows, 2=Linux, 3=macOS
/// </summary>
public int? Platform { get; set; }

/// <summary>
/// 产品id
/// 产品 ID
/// </summary>
public string? ProductId { get; set; }

/// <summary>
/// 是否强制更新
/// </summary>
public bool? IsForcibly { get; set; }

/// <summary>
/// 文件格式
/// 文件格式(如 .zip)
/// </summary>
public string Format { get; set; } = string.Empty;
public string? Format { get; set; }

/// <summary>
/// 文件大小
/// 文件大小(字节)
/// </summary>
public long? Size { get; set; }


/// <summary>
/// 是否冻结(冻结的包不参与更新)
/// </summary>
public bool? IsFreeze { get; set; }

/// <summary>
/// 升级模式: 1=VersionChain, 2=CrossVersion
/// </summary>
public int? UpgradeMode { get; set; }

/// <summary>
/// 是否为跨版本升级包
/// </summary>
public bool? IsCrossVersion { get; set; }

/// <summary>
/// 跨版本升级的源版本号
/// </summary>
public string? FromVersion { get; set; }

/// <summary>
/// 跨版本升级的目标版本号
/// </summary>
public string? ToVersion { get; set; }
}
15 changes: 10 additions & 5 deletions src/Server/DTOs/VerifyDTO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,32 @@ namespace ServerSample.DTOs;
public class VerifyDTO
{
/// <summary>
/// 版本号
/// 客户端当前版本号
/// </summary>
public string? Version { get; set; }

/// <summary>
/// 应用类型
/// 应用类型: 1=Client(主应用), 2=Upgrade(升级器)
/// </summary>
public int? AppType { get; set; }

/// <summary>
/// 应用密钥
/// 应用密钥,用于服务端验证
/// </summary>
public string? AppKey { get; set; }

/// <summary>
/// 系统平台
/// 系统平台: 1=Windows, 2=Linux, 3=macOS
/// </summary>
public int? Platform { get; set; }

/// <summary>
/// 所属产品分支id
/// 所属产品分支 ID
/// </summary>
public string? ProductId { get; set; }

/// <summary>
/// 升级模式: 1=VersionChain(逐版本链式升级), 2=CrossVersion(跨版本升级)
/// </summary>
public int? UpgradeMode { get; set; }
}
Loading
Loading