fengling-platform/Fengling.Platform.Domain/AggregatesModel/GatewayAggregate/GwDestination.cs
movingsam 021f464c0d
Some checks are pending
Publish Platform NuGet Packages / build (push) Waiting to run
feat: 添加 GwDestination 租户代码属性并更新版本至 1.0.1
- 在 GwDestination 实体添加 TenantCode 属性,用于区分租户专属目标
  - null 或空字符串表示默认目标(所有租户共享)
  - 有值表示该目标专属于指定租户
- 更新 Fengling.Platform.Domain 版本号从 1.0.0 到 1.0.1
2026-03-08 00:43:21 +08:00

45 lines
1.1 KiB
C#
Raw Permalink 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;
/// <summary>
/// 租户代码,用于区分租户专属目标
/// null 或空字符串表示默认目标(所有租户共享)
/// 有值表示该目标专属于指定租户
/// </summary>
public string? TenantCode { get; set; }
}