Add Master Data

This commit is contained in:
Thanakarn Klangkasame
2025-10-10 16:22:06 +07:00
parent ad0d9e41ba
commit d4ab1cb592
55 changed files with 16058 additions and 197 deletions

View File

@@ -0,0 +1,3 @@
namespace AMREZ.EOP.Contracts.DTOs.Authentications.AssignRole;
public sealed class AssignRoleRequest(Guid UserId, Guid TenantId, string RoleCode);

View File

@@ -0,0 +1,3 @@
namespace AMREZ.EOP.Contracts.DTOs.Authentications.AssignRole;
public sealed class AssignRoleResponse(string[] Roles);

View File

@@ -6,4 +6,5 @@ public sealed class IssueTokenPairRequest
public Guid TenantId { get; init; } = default!;
public string Tenant { get; init; } = default!;
public string Email { get; init; } = default!;
public string[]? Roles { get; init; } = default;
}

View File

@@ -4,5 +4,6 @@ public sealed record LoginResponse(
Guid UserId,
Guid TenantId,
string Email,
string TenantKey
string TenantKey,
string[] Roles
);

View File

@@ -0,0 +1,3 @@
namespace AMREZ.EOP.Contracts.DTOs.Authentications.Role;
public sealed record RoleChange(string RoleCode);

View File

@@ -0,0 +1,3 @@
namespace AMREZ.EOP.Contracts.DTOs.Authentications.UnassignRole;
public sealed class UnassignRoleRequest(Guid UserId, Guid TenantId, string RoleCode);

View File

@@ -0,0 +1,3 @@
namespace AMREZ.EOP.Contracts.DTOs.Authentications.UnassignRole;
public sealed class UnassignRoleResponse(string[] Roles);