using CZFW.Framework.Attributes; using System.ComponentModel.DataAnnotations; namespace CZFW.Framework.Model { public class PrivilegeModel:ModelBase { [Invisible] public string GroupMark { get; set; } [Display(Name = "名称")] [Required] public string Name { get; set; } [Display(Name = "区域名", Description = "所属Area, 默认为空")] [MaxLength(128)] public string AreaName { get; set; } = null; [Display(Name = "控制器名", Description = "所属Controller, 默认为空")] [MaxLength(128)] public string ControllerName { get; set; } = null; [Display(Name = "方法名", Description = "所属Action, 默认为空")] [MaxLength(128)] public string ActionName { get; set; } [Display(Name = "Url", Description = "要控制Url, 默认为空")] [MaxLength(128)] public string Url { get; set; } [Display(Name = "简介")] [MaxLength(1024)] public string Description { get; set; } } }