Complete FrontOffice BFF to CMS Migration

- 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)
This commit is contained in:
masoodafar-web
2026-01-30 08:53:09 +03:30
parent 96daf899c7
commit 658d076bdf
170 changed files with 3770 additions and 4364 deletions
@@ -0,0 +1,35 @@
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
}