Changes: - Remove deprecated Fengling.Activity and YarpGateway.Admin projects - Add points processing services with distributed lock support - Update Vben frontend with gateway management pages - Add gateway config controller and database listener - Update routing to use header-mixed-nav layout - Add comprehensive test suites for Member services - Add YarpGateway integration tests - Update package versions in Directory.Packages.props Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
22 lines
565 B
C#
22 lines
565 B
C#
namespace Fengling.Member.Infrastructure;
|
||
|
||
/// <summary>
|
||
/// 租户访问器接口
|
||
/// 用于从不同来源获取当前请求的 TenantId
|
||
/// - HTTP 请求:从 JWT Claim 获取
|
||
/// - 消息队列消费者:从消息 Header 获取
|
||
/// </summary>
|
||
public interface ITenantAccessor
|
||
{
|
||
/// <summary>
|
||
/// 获取当前租户ID
|
||
/// </summary>
|
||
/// <returns>租户ID,如果无法获取则返回 null</returns>
|
||
long? GetTenantId();
|
||
|
||
/// <summary>
|
||
/// 尝试获取当前租户ID
|
||
/// </summary>
|
||
bool TryGetTenantId(out long tenantId);
|
||
}
|