更新项目配置,新增设备同步模块,优化WebSocket和Swagger配置,增强SCADA系统的免登录接口,支持数据字典项和登录日志的免登录查询与记录。调整Java编译设置,确保更好的开发体验。

This commit is contained in:
geht
2026-04-28 10:23:58 +08:00
parent bbe46dcf2d
commit 142a0bdaba
1013 changed files with 41858 additions and 28 deletions

View 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;
}

View File

@@ -0,0 +1,43 @@
using SqlSugar;
namespace YY.Admin.Core.Models;
/// <summary>
/// 断联续传消息实体。
/// </summary>
[SugarTable("outbox_messages")]
public class OutboxMessage
{
[SugarColumn(IsPrimaryKey = true, Length = 64)]
public string Id { get; set; } = Guid.NewGuid().ToString("N");
[SugarColumn(Length = 128, IsNullable = false)]
public string AggregateType { get; set; } = string.Empty;
[SugarColumn(Length = 128, IsNullable = false)]
public string AggregateId { get; set; } = string.Empty;
[SugarColumn(Length = 128, IsNullable = false)]
public string EventType { get; set; } = string.Empty;
[SugarColumn(ColumnDataType = "TEXT", IsNullable = false)]
public string Payload { get; set; } = string.Empty;
[SugarColumn(IsNullable = false)]
public int Status { get; set; }
[SugarColumn(IsNullable = false)]
public int RetryCount { get; set; }
[SugarColumn(Length = 2000, IsNullable = true)]
public string? ErrorMessage { get; set; }
[SugarColumn(IsNullable = false)]
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
[SugarColumn(IsNullable = true)]
public DateTime? LastTriedAt { get; set; }
[SugarColumn(IsNullable = true)]
public DateTime? SentAt { get; set; }
}