Granular permission back end done
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
namespace FJPSite.Models;
|
||||
|
||||
public class ActionPermissionModel
|
||||
{
|
||||
public int ActionId { get; set; }
|
||||
public string ActionName { get; set; }
|
||||
public bool IsSelected { get; set; }
|
||||
public bool IsDisabled { get; set; }
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
namespace FJPSite.Models
|
||||
{
|
||||
public class ErrorViewModel
|
||||
{
|
||||
public string? RequestId { get; set; }
|
||||
namespace FJPSite.Models;
|
||||
|
||||
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||
}
|
||||
public class ErrorViewModel
|
||||
{
|
||||
public string? RequestId { get; set; }
|
||||
|
||||
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace FJPSite.Models;
|
||||
|
||||
public class FeaturePermissionModel
|
||||
{
|
||||
public int FeatureId { get; set; }
|
||||
public string FeatureName { get; set; }
|
||||
public List<ActionPermissionModel> Actions { get; set; } = new List<ActionPermissionModel>();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using FJPSite.Enums;
|
||||
|
||||
namespace FJPSite.Models;
|
||||
|
||||
public class PermissionModel
|
||||
{
|
||||
public FeatureEnum Feature { get; set; }
|
||||
public ActionEnum Action { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace FJPSite.Models;
|
||||
|
||||
public class PermissionStructureModel
|
||||
{
|
||||
public int ModuleId { get; set; }
|
||||
public string ModuleName { get; set; }
|
||||
public List<FeaturePermissionModel> Features { get; set; } = new List<FeaturePermissionModel>();
|
||||
}
|
||||
Reference in New Issue
Block a user