You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
862 B
29 lines
862 B
using Easy.Auditing.Contracts;
|
|
using Easy.DDD.Domain.Entities;
|
|
|
|
namespace PermissionManagement.Api.DDD.Domain.Entites;
|
|
|
|
/// <summary>
|
|
/// 授权许可
|
|
/// </summary>
|
|
public partial class PermissionGrant : AggregateRoot<Guid>
|
|
{
|
|
public PermissionGrant(Guid id, string permissionName, string providerName, Guid providerKey) : base(id)
|
|
{
|
|
ProviderName = providerName;
|
|
PermissionName = permissionName;
|
|
ProviderKey = providerKey;
|
|
}
|
|
/// <summary>
|
|
/// R = 角色 ,UO开启角色上没有的 UD禁用角色上的
|
|
/// </summary>
|
|
public string ProviderName { get; set; }
|
|
/// <summary>
|
|
/// 权限名称 权限组_权限_子权限
|
|
/// </summary>
|
|
public string PermissionName { get; set; }
|
|
/// <summary>
|
|
/// 角色Id 或者 用户Id
|
|
/// </summary>
|
|
public Guid ProviderKey { get; set; }
|
|
}
|
|
|