first commit

This commit is contained in:
2025-02-26 23:42:19 +01:00
commit 777ea98be1
283 changed files with 88266 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
namespace Kafka.Lib.Auth.Model;
public class ClaimChagesModel
{
public ClaimModel? Old { get; set; }
public ClaimModel? New { get; set; }
}
+8
View File
@@ -0,0 +1,8 @@
namespace Kafka.Lib.Auth.Model;
public class ClaimModel
{
public string? ClaimType { get; set; }
public string? ClaimValue { get; set; }
public string? ClaimIssuer { get; set; }
}
+30
View File
@@ -0,0 +1,30 @@
using Newtonsoft.Json;
using JsonSerializer = System.Text.Json.JsonSerializer;
namespace Kafka.Lib.Auth.Model
{
public class PrivilageModel
{
public string? Id { get; set; }
public string? PrivilageName { get; set; }
[JsonIgnore]
public string Text
{
get => JsonSerializer.Serialize(this);
set
{
if (!string.IsNullOrWhiteSpace(value))
{
var obj = JsonSerializer.Deserialize<PrivilageModel>(value);
if (obj != null)
{
Id = obj.Id;
PrivilageName = obj.PrivilageName;
}
}
}
}
}
}