namespace YY.Admin.Services.Service.AutoUpdate { public interface IAutoUpdateService { Task CheckForUpdatesAsync(); void StartUpdate(string downloadUrl); Task GetVersionInfo(); string GetCurrentVersion(); } public class VersionInfo { public string CurrentVersion { get; set; } = "1.0.0.0"; public string LatestVersion { get; set; } = "1.0.0"; public string DownloadUrl { get; set; } = ""; public string Changelog { get; set; } = "暂无更新内容"; public string PublishDate { get; set; } = ""; public string ApplicationName { get; set; } = "应用程序"; public string CompanyName { get; set; } = ""; public bool Mandatory { get; set; } = false; } }