using Easy.Auditing.Contracts; using Easy.DDD.Domain.Entities; namespace PermissionManagement.Api.DDD.Domain.Entites; /// /// 授权许可 /// public partial class PermissionGrant : AggregateRoot { public PermissionGrant(Guid id, string permissionName, string providerName, Guid providerKey) : base(id) { ProviderName = providerName; PermissionName = permissionName; ProviderKey = providerKey; } /// /// R = 角色 ,UO开启角色上没有的 UD禁用角色上的 /// public string ProviderName { get; set; } /// /// 权限名称 权限组_权限_子权限 /// public string PermissionName { get; set; } /// /// 角色Id 或者 用户Id /// public Guid ProviderKey { get; set; } }