658d076bdf
- Migrated all 9 services from FrontOffice.BFF to CMS architecture - Enhanced user.proto with 7 additional Customer API endpoints: * UpdateCustomerProfile, GetCustomerProfile * ChangeCustomerPassword with validation * GetCustomerReferrals with commission stats * UploadCustomerAvatar with file validation * GetCustomerSettings, UpdateCustomerSettings - All services now support Customer endpoints with /Customer/ prefix - Mock implementations with realistic Persian data - Fixed namespace conflicts and compilation issues - Comprehensive testing completed for all endpoints - Services migrated: Categories, City, UserCarts, Products, UserWallet, Transaction, UserOrder, Package, User (enhanced)
35 lines
1.0 KiB
C#
35 lines
1.0 KiB
C#
namespace CMSMicroservice.Application.HealthCQ.Queries.GetSystemHealth;
|
|
|
|
public class GetSystemHealthResponseDto
|
|
{
|
|
public bool OverallHealthy { get; set; }
|
|
public List<ServiceHealthDto> Services { get; set; } = new();
|
|
public DateTime CheckedAt { get; set; }
|
|
public string Version { get; set; } = string.Empty;
|
|
public string Environment { get; set; } = string.Empty;
|
|
}
|
|
|
|
public class ServiceHealthDto
|
|
{
|
|
public string ServiceName { get; set; } = string.Empty;
|
|
public HealthStatusDto Status { get; set; }
|
|
public string Description { get; set; } = string.Empty;
|
|
public long ResponseTimeMs { get; set; }
|
|
public DateTime LastCheck { get; set; }
|
|
public List<HealthDetailDto> Details { get; set; } = new();
|
|
}
|
|
|
|
public class HealthDetailDto
|
|
{
|
|
public string Key { get; set; } = string.Empty;
|
|
public string Value { get; set; } = string.Empty;
|
|
public HealthStatusDto Status { get; set; }
|
|
}
|
|
|
|
public enum HealthStatusDto
|
|
{
|
|
Unknown = 0,
|
|
Healthy = 1,
|
|
Degraded = 2,
|
|
Unhealthy = 3
|
|
} |