feat: define management message contracts in Commons (10 command groups)
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
namespace ScadaLink.Commons.Messages.Management;
|
||||
|
||||
public record AuthenticatedUser(
|
||||
string Username, string DisplayName,
|
||||
IReadOnlyList<string> Roles, IReadOnlyList<string> PermittedSiteIds);
|
||||
|
||||
public record ManagementEnvelope(AuthenticatedUser User, object Command, string CorrelationId);
|
||||
|
||||
public record ManagementSuccess(string CorrelationId, object? Data);
|
||||
public record ManagementError(string CorrelationId, string Error, string ErrorCode);
|
||||
public record ManagementUnauthorized(string CorrelationId, string Message);
|
||||
Reference in New Issue
Block a user