using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Abp.Domain.Entities.Auditing; using VberZero.BaseSystem.Users; namespace VberZero.BaseSystem; [Table("Sys_Helps")] public class SysHelp : FullAuditedEntity { public const int TitleMaxLength = 50; public const int KeyWordsMaxLength = 50; public const int ContentMaxLength = int.MaxValue; public const int RemarkMaxLength = 1000; /// /// 分类 /// public VzDefinition.HelpType HelpType { get; set; } [Required] [StringLength(TitleMaxLength)] public string Title { get; set; } /// /// 关键字 /// [StringLength(KeyWordsMaxLength)] public string KeyWords { get; set; } /// /// 内容 /// [StringLength(ContentMaxLength)] public string Content { get; set; } /// /// 菜单编码(预留) /// public int? FunctionNo { get; set; } [ForeignKey("FunctionNo")] public SysFunction Function { get; set; } /// /// 权限名称 /// [NotMapped] public string PermissionName => Function?.PermissionName; /// /// 章节 /// public int Sequence { get; set; } [StringLength(RemarkMaxLength)] public string Remark { get; set; } }