更新项目配置,新增设备同步模块,优化WebSocket和Swagger配置,增强SCADA系统的免登录接口,支持数据字典项和登录日志的免登录查询与记录。调整Java编译设置,确保更好的开发体验。
This commit is contained in:
92
yy-admin-master/YY.Admin.Core/Entity/SysOrg.cs
Normal file
92
yy-admin-master/YY.Admin.Core/Entity/SysOrg.cs
Normal file
@@ -0,0 +1,92 @@
|
||||
|
||||
|
||||
namespace YY.Admin.Core;
|
||||
|
||||
/// <summary>
|
||||
/// 系统机构表
|
||||
/// </summary>
|
||||
[SugarTable("sys_org", "系统机构表")]
|
||||
[SysTable]
|
||||
[SugarIndex("index_{table}_N", nameof(Name), OrderByType.Asc)]
|
||||
[SugarIndex("index_{table}_C", nameof(Code), OrderByType.Asc)]
|
||||
[SugarIndex("index_{table}_T", nameof(Type), OrderByType.Asc)]
|
||||
public partial class SysOrg : EntityBaseTenant
|
||||
{
|
||||
/// <summary>
|
||||
/// 父Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "父Id")]
|
||||
public long Pid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "名称", Length = 64)]
|
||||
[Required, MaxLength(64)]
|
||||
public virtual string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "编码", Length = 64)]
|
||||
[MaxLength(64)]
|
||||
public string? Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 级别
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "级别")]
|
||||
public int? Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 机构类型-数据字典
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "机构类型", Length = 64)]
|
||||
[MaxLength(64)]
|
||||
public virtual string? Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 负责人Id
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "负责人Id", IsNullable = true)]
|
||||
public long? DirectorId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 负责人
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
[Navigate(NavigateType.OneToOne, nameof(DirectorId))]
|
||||
public SysUser Director { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "排序")]
|
||||
public int OrderNo { get; set; } = 100;
|
||||
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "状态")]
|
||||
public StatusEnum Status { get; set; } = StatusEnum.Enable;
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnDescription = "备注", Length = 128)]
|
||||
[MaxLength(128)]
|
||||
public string? Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 机构子项
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<SysOrg> Children { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否禁止选中
|
||||
/// </summary>
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public bool Disabled { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user