17c2958b9c
Build and Deploy to Production / build-and-deploy (push) Successful in 1m37s
- Add AppVersion entity with CurrentVersion, MinRequiredVersion, RequiresFullCacheClear - Add GetAppVersion query to check app version and compare with client version - Add GetAllAppVersions query for admin panel - Add UpdateAppVersion command to update/create app versions - Add appversion.proto for gRPC communication - Add AppVersionService for gRPC endpoints - Add database migration for AppVersions table
23 lines
881 B
C#
23 lines
881 B
C#
namespace CMSMicroservice.Application.AppVersionCQ.Queries.GetAppVersion;
|
|
|
|
/// <summary>
|
|
/// Query برای دریافت آخرین نسخه یک اپلیکیشن
|
|
/// </summary>
|
|
public record GetAppVersionQuery(string AppName, string? CurrentClientVersion = null) : IRequest<AppVersionDto?>;
|
|
|
|
/// <summary>
|
|
/// DTO برای اطلاعات نسخه اپلیکیشن
|
|
/// </summary>
|
|
public record AppVersionDto
|
|
{
|
|
public bool Found { get; init; }
|
|
public string AppName { get; init; } = string.Empty;
|
|
public string CurrentVersion { get; init; } = string.Empty;
|
|
public string MinRequiredVersion { get; init; } = string.Empty;
|
|
public bool RequiresFullCacheClear { get; init; }
|
|
public bool RequiresUpdate { get; init; }
|
|
public string? UpdateMessage { get; init; }
|
|
public string? ReleaseNotes { get; init; }
|
|
public DateTime? LastUpdated { get; init; }
|
|
}
|