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