| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
- using Abp.MultiTenancy;
- namespace VberZero.BaseSystem;
- [Table("Sys_Functions")]
- public class SysFunction : TreeEntity<int?, SysFunction>
- {
- public const int NameMaxLength = 50;
- public const int DisplayNameMaxLength = 100;
- public const int PermissionNameMaxLength = 500;
- public const int UrlMaxLength = 1000;
- public const int IconMaxLength = 50;
- public const int ScriptMaxLength = 100;
- public const int ClassMaxLength = 100;
- public SysFunction()
- {
- MultiTenancySides = MultiTenancySides.Tenant;
- }
- [MaxLength(NameMaxLength)]
- public string Name { get; set; }
- [MaxLength(DisplayNameMaxLength)]
- public string DisplayName { get; set; }
- [MaxLength(PermissionNameMaxLength)]
- public string PermissionName { get; set; }
- public VzDefinition.FunctionType FunctionType { get; set; }
- [StringLength(UrlMaxLength)]
- public string Url { get; set; }
- [StringLength(IconMaxLength)]
- public string Icon { get; set; }
- [StringLength(ScriptMaxLength)]
- public string Script { get; set; }
- [StringLength(ClassMaxLength)]
- public string Class { get; set; }
- public bool NeedAuth { get; set; }
- public MultiTenancySides MultiTenancySides { get; set; }
- }
|