Add Master Data
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.AssignRole;
|
||||
|
||||
public sealed class AssignRoleRequest(Guid UserId, Guid TenantId, string RoleCode);
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.AssignRole;
|
||||
|
||||
public sealed class AssignRoleResponse(string[] Roles);
|
||||
@@ -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;
|
||||
}
|
||||
@@ -4,5 +4,6 @@ public sealed record LoginResponse(
|
||||
Guid UserId,
|
||||
Guid TenantId,
|
||||
string Email,
|
||||
string TenantKey
|
||||
string TenantKey,
|
||||
string[] Roles
|
||||
);
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.Role;
|
||||
|
||||
public sealed record RoleChange(string RoleCode);
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.UnassignRole;
|
||||
|
||||
public sealed class UnassignRoleRequest(Guid UserId, Guid TenantId, string RoleCode);
|
||||
@@ -0,0 +1,3 @@
|
||||
namespace AMREZ.EOP.Contracts.DTOs.Authentications.UnassignRole;
|
||||
|
||||
public sealed class UnassignRoleResponse(string[] Roles);
|
||||
Reference in New Issue
Block a user