diff --git a/Fengling.Platform.Domain/AggregatesModel/GatewayAggregate/GwDestination.cs b/Fengling.Platform.Domain/AggregatesModel/GatewayAggregate/GwDestination.cs new file mode 100644 index 0000000..c4a85bf --- /dev/null +++ b/Fengling.Platform.Domain/AggregatesModel/GatewayAggregate/GwDestination.cs @@ -0,0 +1,37 @@ +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; +}