123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- using System.ComponentModel.DataAnnotations;
- using Admin.Core.Model.Admin;
- using FreeSql.DataAnnotations;
- namespace Admin.Core.Model.Admin
- {
-
-
-
- [Table(Name = "ad_permission")]
- [Index("uk_permission_parentid_label", "ParentId,Label", true)]
- public class PermissionEntity : EntityBase
- {
-
-
-
- public long ParentId { get; set; }
-
-
-
- [MaxLength(50)]
- public string Label { get; set; }
-
-
-
- [Column(MapType = typeof(int),CanUpdate = false)]
- public PermissionType Type { get; set; }
-
-
-
- public long? ViewId { get; set; }
- public ViewEntity View { get; set; }
-
-
-
- public long? ApiId { get; set; }
- public ApiEntity Api { get; set; }
-
-
-
- [MaxLength(500)]
- public string Path { get; set; }
-
-
-
- [MaxLength(100)]
- public string Icon { get; set; }
-
-
-
- public bool Hidden { get; set; } = false;
-
-
-
- public bool Enabled { get; set; } = true;
-
-
-
- public bool? Closable { get; set; }
-
-
-
- public bool? Opened { get; set; }
-
-
-
- public bool? NewWindow { get; set; }
-
-
-
- public bool? External { get; set; }
-
-
-
- public int? Sort { get; set; } = 0;
-
-
-
- [MaxLength(100)]
- public string Description { get; set; }
- }
- }
|