Files
qhmes/yy-admin-master/YY.Admin.Services/Service/AutoUpdate/IAutoUpdateService.cs

23 lines
799 B
C#

namespace YY.Admin.Services.Service.AutoUpdate
{
public interface IAutoUpdateService
{
Task<bool> CheckForUpdatesAsync();
void StartUpdate(string downloadUrl);
Task<VersionInfo?> 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;
}
}