18 lines
475 B
C#
18 lines
475 B
C#
|
|
using Meezi.Core.Enums;
|
||
|
|
|
||
|
|
namespace Meezi.Core.Interfaces;
|
||
|
|
|
||
|
|
public interface ITenantContext
|
||
|
|
{
|
||
|
|
string? UserId { get; }
|
||
|
|
string? CafeId { get; }
|
||
|
|
EmployeeRole? Role { get; }
|
||
|
|
PlanTier? PlanTier { get; }
|
||
|
|
string? Language { get; }
|
||
|
|
/// <summary>Active branch from JWT when employee is branch-scoped.</summary>
|
||
|
|
string? BranchId { get; }
|
||
|
|
bool IsSystemAdmin { get; }
|
||
|
|
bool IsAuthenticated { get; }
|
||
|
|
bool IsCafeOwner => Role == EmployeeRole.Owner;
|
||
|
|
}
|