using Infrastructure.Domain; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Application.Domain.Entities { [Display(Name = "权限", Order = 50)] [Scope(ScopeAttribute.PlatformAll | ScopeAttribute.OrganAll)] [Module("基础设置", "Admin")] public class Permission : BaseEntity { [Required] public string Name { get; set; } [Required] public string Number { get; set; } public bool IsReadOnly { get; set; } public PermissionType Type { get; set; } public Guid? CategoryId { get; set; } public PermissionCategory Category { get; set; } public List RolePermissions { get; set; } = new List(); } }