IwbSysFunction.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using Abp.Domain.Entities.Auditing;
  4. using IwbZero.Authorization.Users;
  5. namespace IwbZero.BaseSysInfo
  6. {
  7. [Table("Sys_Functions")]
  8. public class IwbSysFunction<TUser> : FullAuditedEntity<int>, IFullAudited<TUser>
  9. where TUser : IwbSysUser<TUser>
  10. {
  11. public const int FunctionNoMaxLength = 100;
  12. public const int FunctionNameMaxLength = 100;
  13. public const int PermissionNameMaxLength = 500;
  14. public const int FunctionPathMaxLength = 500;
  15. public const int ActionMaxLength = 50;
  16. public const int ControllerMaxLength = 50;
  17. public const int IconMaxLength = 20;
  18. public const int ClassMaxLength = 100;
  19. [MaxLength(FunctionNoMaxLength)]
  20. public string FunctionNo { get; set; }
  21. [MaxLength(FunctionNoMaxLength)]
  22. public string ParentNo { get; set; }
  23. [MaxLength(FunctionNameMaxLength)]
  24. public string FunctionName { get; set; }
  25. [MaxLength(PermissionNameMaxLength)]
  26. public string PermissionName { get; set; }
  27. public int FunctionType { get; set; }
  28. [MaxLength(FunctionPathMaxLength)]
  29. public string FunctionPath { get; set; }
  30. [StringLength(ActionMaxLength)]
  31. public string Action { get; set; }
  32. [StringLength(ControllerMaxLength)]
  33. public string Controller { get; set; }
  34. public string Url { get; set; }
  35. [StringLength(IconMaxLength)]
  36. public string Icon { get; set; }
  37. [StringLength(ClassMaxLength)]
  38. public string Class { get; set; }
  39. public string Script { get; set; }
  40. public int Sort { get; set; }
  41. public int Depth { get; set; }
  42. public bool? IsLeaf { get; set; }
  43. public TUser CreatorUser { get; set; }
  44. public TUser LastModifierUser { get; set; }
  45. public TUser DeleterUser { get; set; }
  46. }
  47. }