You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
862 B
C#

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