Some checks are pending
Publish Platform NuGet Packages / build (push) Waiting to run
- 在 GwDestination 实体添加 TenantCode 属性,用于区分租户专属目标 - null 或空字符串表示默认目标(所有租户共享) - 有值表示该目标专属于指定租户 - 更新 Fengling.Platform.Domain 版本号从 1.0.0 到 1.0.1
45 lines
1.1 KiB
C#
45 lines
1.1 KiB
C#
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; }
|
||
}
|