| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- 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<int, User>
- {
- public const int TitleMaxLength = 50;
- public const int KeyWordsMaxLength = 50;
- public const int ContentMaxLength = int.MaxValue;
- public const int RemarkMaxLength = 1000;
- /// <summary>
- /// 分类
- /// </summary>
- public VzDefinition.HelpType HelpType { get; set; }
- [Required]
- [StringLength(TitleMaxLength)]
- public string Title { get; set; }
- /// <summary>
- /// 关键字
- /// </summary>
- [StringLength(KeyWordsMaxLength)]
- public string KeyWords { get; set; }
- /// <summary>
- /// 内容
- /// </summary>
- [StringLength(ContentMaxLength)]
- public string Content { get; set; }
- /// <summary>
- /// 菜单编码(预留)
- /// </summary>
- public int? FunctionNo { get; set; }
- [ForeignKey("FunctionNo")]
- public SysFunction Function { get; set; }
- /// <summary>
- /// 权限名称
- /// </summary>
- [NotMapped] public string PermissionName => Function?.PermissionName;
- /// <summary>
- /// 章节
- /// </summary>
- public int Sequence { get; set; }
- [StringLength(RemarkMaxLength)]
- public string Remark { get; set; }
- }
|