feature: RBAC + Clinical Audit Logging
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
public interface IAuditService
|
||||
{
|
||||
Task WriteAsync(
|
||||
AuditAction action,
|
||||
string entityType,
|
||||
Guid entityId,
|
||||
object? previousValue = null,
|
||||
object? newValue = null,
|
||||
string? reason = null);
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
public interface IAuthService
|
||||
{
|
||||
Task<LoginResponse> LoginAsync(LoginRequest req);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
public interface ICurrentUserService
|
||||
{
|
||||
Guid? UserId { get; }
|
||||
string? Username { get; }
|
||||
string? DisplayName { get; }
|
||||
ClinicalRole? Role { get; }
|
||||
bool IsAuthenticated { get; }
|
||||
string? IpAddress { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user