更新项目配置,新增设备同步模块,优化WebSocket和Swagger配置,增强SCADA系统的免登录接口,支持数据字典项和登录日志的免登录查询与记录。调整Java编译设置,确保更好的开发体验。
This commit is contained in:
25
yy-admin-master/YY.Admin.Core/Core/Models/DeviceStatus.cs
Normal file
25
yy-admin-master/YY.Admin.Core/Core/Models/DeviceStatus.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using SqlSugar;
|
||||
|
||||
namespace YY.Admin.Core.Models;
|
||||
|
||||
/// <summary>
|
||||
/// 设备本地状态快照。
|
||||
/// </summary>
|
||||
[SugarTable("device_status_snapshot")]
|
||||
public class DeviceStatus
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true, Length = 64)]
|
||||
public string DeviceId { get; set; } = string.Empty;
|
||||
|
||||
[SugarColumn(IsNullable = false)]
|
||||
public bool IsOnline { get; set; }
|
||||
|
||||
[SugarColumn(IsNullable = true)]
|
||||
public DateTime? LastHeartbeatAt { get; set; }
|
||||
|
||||
[SugarColumn(ColumnDataType = "TEXT", IsNullable = true)]
|
||||
public string? StatusJson { get; set; }
|
||||
|
||||
[SugarColumn(IsNullable = false)]
|
||||
public DateTime UpdatedAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
Reference in New Issue
Block a user