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#
40 lines
862 B
C#
using SqlSugar;
|
|
|
|
namespace DS.WMS.Core.Sys.Entity;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[SqlSugar.SugarTable("sys_role_permission")]
|
|
public class SysRolePermission
|
|
{
|
|
public SysRolePermission()
|
|
{
|
|
this.Role = new SysRole();
|
|
this.Permission = new SysPermission();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 角色ID
|
|
/// </summary>
|
|
[SugarColumn(IsPrimaryKey = true)]
|
|
public long? RoleId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 权限ID
|
|
/// </summary>
|
|
[SugarColumn(IsPrimaryKey = true)]
|
|
public long? 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; }
|
|
} |