2024-12-22 02:15:34 +01:00
|
|
|
namespace DotBased.AspNet.Authority.Models.Authority;
|
|
|
|
|
2025-01-08 16:22:59 +01:00
|
|
|
public abstract class AuthorityRole
|
2024-12-22 02:15:34 +01:00
|
|
|
{
|
2025-01-08 16:30:51 +01:00
|
|
|
public AuthorityRole(string name) : this()
|
|
|
|
{
|
|
|
|
Name = name;
|
|
|
|
}
|
|
|
|
|
|
|
|
public AuthorityRole()
|
|
|
|
{
|
|
|
|
Id = Guid.NewGuid();
|
|
|
|
CreatedDate = DateTime.Now;
|
|
|
|
}
|
|
|
|
|
2025-01-08 16:22:59 +01:00
|
|
|
public Guid Id { get; set; }
|
2024-12-22 02:15:34 +01:00
|
|
|
|
|
|
|
public string? Name { get; set; }
|
|
|
|
|
|
|
|
public long Version { get; set; }
|
|
|
|
|
|
|
|
public DateTime CreatedDate { get; set; }
|
|
|
|
|
|
|
|
public override string ToString() => Name ?? string.Empty;
|
|
|
|
}
|