31 lines
702 B
C#
31 lines
702 B
C#
|
|
|
|
namespace YY.Admin.Core;
|
|
|
|
/// <summary>
|
|
/// 系统角色机构表
|
|
/// </summary>
|
|
[SugarTable("sys_role_org", "系统角色机构表")]
|
|
[SysTable]
|
|
public class SysRoleOrg : EntityBaseId
|
|
{
|
|
/// <summary>
|
|
/// 角色Id
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "角色Id")]
|
|
public long RoleId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 机构Id
|
|
/// </summary>
|
|
[SugarColumn(ColumnDescription = "机构Id")]
|
|
public long OrgId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 机构
|
|
/// </summary>
|
|
[Newtonsoft.Json.JsonIgnore]
|
|
[System.Text.Json.Serialization.JsonIgnore]
|
|
[Navigate(NavigateType.OneToOne, nameof(OrgId))]
|
|
public SysOrg SysOrg { get; set; }
|
|
} |