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