SysHelp.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using Abp.Domain.Entities.Auditing;
  4. using VberZero.BaseSystem.Users;
  5. namespace VberZero.BaseSystem;
  6. [Table("Sys_Helps")]
  7. public class SysHelp : FullAuditedEntity<int, User>
  8. {
  9. public const int TitleMaxLength = 50;
  10. public const int KeyWordsMaxLength = 50;
  11. public const int ContentMaxLength = int.MaxValue;
  12. public const int RemarkMaxLength = 1000;
  13. /// <summary>
  14. /// 分类
  15. /// </summary>
  16. public VzDefinition.HelpType HelpType { get; set; }
  17. [Required]
  18. [StringLength(TitleMaxLength)]
  19. public string Title { get; set; }
  20. /// <summary>
  21. /// 关键字
  22. /// </summary>
  23. [StringLength(KeyWordsMaxLength)]
  24. public string KeyWords { get; set; }
  25. /// <summary>
  26. /// 内容
  27. /// </summary>
  28. [StringLength(ContentMaxLength)]
  29. public string Content { get; set; }
  30. /// <summary>
  31. /// 菜单编码(预留)
  32. /// </summary>
  33. public int? FunctionNo { get; set; }
  34. [ForeignKey("FunctionNo")]
  35. public SysFunction Function { get; set; }
  36. /// <summary>
  37. /// 权限名称
  38. /// </summary>
  39. [NotMapped] public string PermissionName => Function?.PermissionName;
  40. /// <summary>
  41. /// 章节
  42. /// </summary>
  43. public int Sequence { get; set; }
  44. [StringLength(RemarkMaxLength)]
  45. public string Remark { get; set; }
  46. }