using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Abp.Domain.Entities.Auditing; namespace IwbZero.Authorization.Base.SystemInfo { public class SysFunctionBase : FullAuditedEntity { public const int FunctionNoMaxLength = 100; public const int FunctionNameMaxLength = 100; public const int PermissionNameMaxLength = 500; public const int FunctionPathMaxLength = 500; public const int ActionMaxLength = 50; public const int ControllerMaxLength = 50; public const int IconMaxLength = 50; public const int ClassMaxLength = 100; [MaxLength(FunctionNoMaxLength)] [Index] public string FunctionNo { get; set; } [MaxLength(FunctionNoMaxLength)] public string ParentNo { get; set; } [MaxLength(FunctionNameMaxLength)] public string FunctionName { get; set; } [MaxLength(PermissionNameMaxLength)] [Index(IsUnique = true)] public string PermissionName { get; set; } public int FunctionType { get; set; } //[MaxLength(FunctionPathMaxLength)] //public string FunctionPath { get; set; } [StringLength(ActionMaxLength)] public string Action { get; set; } [StringLength(ControllerMaxLength)] public string Controller { get; set; } public string Url { get; set; } [StringLength(IconMaxLength)] public string Icon { get; set; } [StringLength(ClassMaxLength)] public string Class { get; set; } public string Script { get; set; } public bool NeedAuth { get; set; } public int Sort { get; set; } public int Depth { get; set; } public bool? IsLeaf { get; set; } } }