using Infrastructure.Application; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; namespace Application.Models { [Display(Name = "角色")] public class EditRoleModel : EditModel { [Display(Name = "名称"), Required] public string Name { get; set; } [DataType("MultiSelectList")] [Display(Name = "权限")] public List Permissions { get; set; } = new List(); } }