namespace Fengling.Platform.Domain.AggregatesModel.GatewayAggregate;
///
/// 目标端点(值对象,内嵌于 GwCluster)
///
public class GwDestination
{
///
/// 目标标识
///
public string DestinationId { get; set; } = string.Empty;
///
/// 后端地址
///
public string Address { get; set; } = string.Empty;
///
/// 健康检查端点
///
public string? Health { get; set; }
///
/// 权重(用于加权负载均衡)
///
public int Weight { get; set; } = 1;
///
/// 健康状态
///
public int HealthStatus { get; set; } = 1;
///
/// 状态
///
public int Status { get; set; } = 1;
///
/// 租户代码,用于区分租户专属目标
/// null 或空字符串表示默认目标(所有租户共享)
/// 有值表示该目标专属于指定租户
///
public string? TenantCode { get; set; }
}