using Infrastructure.Domain; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Application.Domain.Entities { [Display(Name = "角色")] public class Role : BaseEntity { public string Name { get; set; } public bool IsReadOnly { get; set; } public List UserRoles { get; set; } = new List(); public List RolePermissions { get; set; } = new List(); } }