fengling-platform/Fengling.Platform.Domain/AggregatesModel/GatewayAggregate/GwDestination.cs
movingsam 7ec34fa094 feat(03-01): add GwDestination value object
- Created destination endpoint value object embedded in GwCluster
- Includes DestinationId, Address, Health, Weight, HealthStatus, Status fields
- Compatible with YARP Destination config structure
2026-03-03 15:31:53 +08:00

38 lines
868 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace Fengling.Platform.Domain.AggregatesModel.GatewayAggregate;
/// <summary>
/// 目标端点(值对象,内嵌于 GwCluster
/// </summary>
public class GwDestination
{
/// <summary>
/// 目标标识
/// </summary>
public string DestinationId { get; set; } = string.Empty;
/// <summary>
/// 后端地址
/// </summary>
public string Address { get; set; } = string.Empty;
/// <summary>
/// 健康检查端点
/// </summary>
public string? Health { get; set; }
/// <summary>
/// 权重(用于加权负载均衡)
/// </summary>
public int Weight { get; set; } = 1;
/// <summary>
/// 健康状态
/// </summary>
public int HealthStatus { get; set; } = 1;
/// <summary>
/// 状态
/// </summary>
public int Status { get; set; } = 1;
}