PrivilegeModel.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. using CZFW.Framework.Attributes;
  2. using System.ComponentModel.DataAnnotations;
  3. namespace CZFW.Framework.Model
  4. {
  5. public class PrivilegeModel:ModelBase
  6. {
  7. [Invisible]
  8. public string GroupMark { get; set; }
  9. [Display(Name = "名称")]
  10. [Required]
  11. public string Name { get; set; }
  12. [Display(Name = "区域名", Description = "所属Area, 默认为空")]
  13. [MaxLength(128)]
  14. public string AreaName { get; set; } = null;
  15. [Display(Name = "控制器名", Description = "所属Controller, 默认为空")]
  16. [MaxLength(128)]
  17. public string ControllerName { get; set; } = null;
  18. [Display(Name = "方法名", Description = "所属Action, 默认为空")]
  19. [MaxLength(128)]
  20. public string ActionName { get; set; }
  21. [Display(Name = "Url", Description = "要控制Url, 默认为空")]
  22. [MaxLength(128)]
  23. public string Url { get; set; }
  24. [Display(Name = "简介")]
  25. [MaxLength(1024)]
  26. public string Description { get; set; }
  27. }
  28. }