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