using SqlSugar; namespace DS.WMS.Core.System.Entity; /// /// /// [SqlSugar.SugarTable("sys_rolepermission")] public class SysRolePermission { public SysRolePermission() { this.Role = new SysRole(); this.Permission = new SysPermission(); } /// /// 角色ID /// [SugarColumn(IsPrimaryKey = true)] public long? RoleId { get; set; } /// /// 权限ID /// [SugarColumn(IsPrimaryKey = true)] public long? PermissionId { get; set; } /// /// 是否有权限 /// 0 无 1 有 /// public int IsPermission { get; set; } [SugarColumn(IsIgnore = true)] public virtual SysRole Role { get; set; } [SugarColumn(IsIgnore = true)] public virtual SysPermission Permission { get; set; } }