-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: sagilio <[email protected]>
- Loading branch information
Showing
20 changed files
with
884 additions
and
569 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Casbin.Model; | ||
|
||
namespace Casbin.Persist; | ||
|
||
public interface IPersistantPolicy | ||
{ | ||
public string Type { get; set; } | ||
public string Value1 { get; set; } | ||
public string Value2 { get; set; } | ||
public string Value3 { get; set; } | ||
public string Value4 { get; set; } | ||
public string Value5 { get; set; } | ||
public string Value6 { get; set; } | ||
public string Value7 { get; set; } | ||
public string Value8 { get; set; } | ||
public string Value9 { get; set; } | ||
public string Value10 { get; set; } | ||
public string Value11 { get; set; } | ||
public string Value12 { get; set; } | ||
public IPolicyValues Values { get; } | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using System.Linq; | ||
|
||
namespace Casbin.Persist; | ||
|
||
public interface IPolicyFilter : IPolicyFilter<IPersistantPolicy> | ||
{ | ||
} | ||
|
||
public interface IPolicyFilter<T> where T : IPersistantPolicy | ||
{ | ||
public IQueryable<T> ApplyFilter(IQueryable<T> policies); | ||
} | ||
|
Oops, something went wrong.