Files
tiku-backend.net/Tiku.Application/Tenancy/TenantDirectoryModels.cs
xiong c497a3ca8d
Some checks failed
ci / release-gate (push) Has been cancelled
清理代码
2026-08-03 12:31:39 +08:00

22 lines
529 B
C#

using Tiku.Domain.Tenancy;
namespace Tiku.Application.Tenancy;
public sealed record TenantDirectoryEntry(
Guid TenantId,
string TenantCode,
string Name,
TenantStatus Status,
TenantMode Mode,
string? Host);
public interface ITenantDirectory
{
Task<TenantDirectoryEntry?> FindByHostAsync(
string host,
CancellationToken cancellationToken = default);
Task<TenantDirectoryEntry?> FindByCodeAsync(
string tenantCode,
CancellationToken cancellationToken = default);
}