0052725b88
- Created UserViewSheet component to display user details including username, full name, role, status, and timestamps. - Created RoleViewSheet component to display role details including name, level, status, creation date, and associated permissions. - Introduced permissions configuration in a new permissions.ts file, defining categories and permission codes for better management. - Implemented middleware for authentication, ensuring access control for protected routes.
14 lines
398 B
C#
14 lines
398 B
C#
namespace Distribution.Infra.Authorization;
|
|
|
|
public record PermissionCheckResponse(bool HasPermission);
|
|
|
|
public record RolePermissionsResponse(List<string> Permissions);
|
|
|
|
public record StoreScopeCheckResponse(bool HasScope);
|
|
|
|
public record RouteScopeCheckResponse(bool HasScope);
|
|
|
|
public record RegionScopeCheckResponse(bool HasScope);
|
|
|
|
public record AccessibleStoresResponse(List<Guid> StoreIds);
|