using Infrastructure.Domain; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Application.Domain.Entities { [Display(Name = "角色", Order = 80)] [Scope(ScopeAttribute.PlatformAll | ScopeAttribute.OrganAll)] [Module("基础设置", "Admin")] public class Role : BaseEntity { public string Name { get; set; } public string Number { get; set; } public bool IsReadOnly { get; set; } public Guid OrganId { get; set; } public Organ Organ { get; set; } public List UserRoles { get; set; } = new List(); public List RolePermissions { get; set; } = new List(); } }