ref: project structure
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
namespace mws.backend.dotnet.domain.Roles;
|
||||
|
||||
public class Role
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public bool IsSystem { get; set; }
|
||||
public DateTime CreatedAt { get; set; }
|
||||
public DateTime UpdatedAt { get; set; }
|
||||
|
||||
public List<RolePermission> Permissions { get; set; } = [];
|
||||
public List<mws.backend.dotnet.domain.Users.UserRole> UserRoles { get; set; } = [];
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace mws.backend.dotnet.domain.Roles;
|
||||
|
||||
public class RolePermission
|
||||
{
|
||||
public Guid RoleId { get; set; }
|
||||
public string Screen { get; set; } = string.Empty;
|
||||
public bool CanView { get; set; }
|
||||
public bool CanCreate { get; set; }
|
||||
public bool CanEdit { get; set; }
|
||||
public bool CanDelete { get; set; }
|
||||
|
||||
public Role Role { get; set; } = null!;
|
||||
}
|
||||
Reference in New Issue
Block a user