SubsiteModel.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using CZFW.Framework.Attributes;
  2. using CZFW.Framework.Model;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.Text;
  7. namespace CZFW.Framework.Model.ViewModel
  8. {
  9. public class SubsiteModel:ModelBase
  10. {
  11. [MaxLength(128)]
  12. [Display(Name = "名称")]
  13. [Required]
  14. public string Name { get; set; }
  15. [MaxLength(128)]
  16. [Display(Name = "所属组织")]
  17. public string Orgnization { get; set; }
  18. [MaxLength(128)]
  19. [Display(Name = "路径")]
  20. public string Path { get; set; }
  21. [Display(Name = "上线状态")]
  22. [EnumSrc(Name = "CZFW.Framework.Model.Enum.SubsiteOnlineStatusEnum")]
  23. public int OnlineStatus { get; set; }
  24. [Display(Name = "上线状态")]
  25. public string OnlineStatusName { get; set; }
  26. [MaxLength(2048)]
  27. [Display(Name = "简介")]
  28. [DataType(DataType.MultilineText)]
  29. public string Description { get; set; }
  30. }
  31. }