This commit is contained in:
Thanakarn Klangkasame
2025-09-30 11:01:02 +07:00
commit 92e614674c
182 changed files with 9596 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
namespace AMREZ.EOP.Domain.Shared.Contracts;
public static class AuthPolicies
{
public const string Scheme = "AuthCookie";
}

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Domain.Shared.HumanResources;
public enum AddressType
{
Home = 1,
Mailing = 2,
Other = 9
}

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Domain.Shared.HumanResources;
public enum EmploymentType
{
Permanent = 1,
Contract = 2,
PartTime = 3,
Intern = 4
}

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Domain.Shared.HumanResources;
public enum Gender
{
Unknown = 0,
Male = 1,
Female = 2,
Other = 3
}

View File

@@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Http;
namespace AMREZ.EOP.Domain.Shared.Tenancy;
public static class HttpContextTenantExtensions
{
public static string? GetTargetTenantKey(this HttpContext http)
{
return http.Items.TryGetValue("TargetTenantKey", out var v)
? v as string
: http.Request.Headers["X-Tenant"].ToString()?.Trim().ToLowerInvariant();
}
}

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Domain.Shared.Tenancy;
public enum TenantMode
{
Rls,
Schema,
Database
}

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Domain.Shared._Users;
public enum ExternalProvider
{
Google = 1,
Apple = 2,
Microsoft = 3,
Facebook = 4,
Line = 5,
Other = 9
}

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Domain.Shared._Users;
public enum IdentityType
{
Email = 1,
Phone = 2,
Username = 3,
Other = 9
}

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Domain.Shared._Users;
public enum MfaType
{
Totp = 1,
Sms = 2,
EmailOtp = 3,
WebAuthn = 4
}