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.

36 lines
862 B
C#

2 years ago
using SqlSugar;
namespace DS.WMS.Core.System.Entity;
/// <summary>
///
/// </summary>
[SqlSugar.SugarTable("SysRolePermission")]
public class SysRolePermission
{
public SysRolePermission()
{
this.Role = new SysRole();
this.Permission = new SysPermission();
}
/// <summary>
/// 角色ID
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public string RoleId { get; set; }
/// <summary>
/// 权限ID
/// </summary>
[SugarColumn(IsPrimaryKey = true)]
public string PermissionId { get; set; }
/// <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; }
}