更新项目配置,新增设备同步模块,优化WebSocket和Swagger配置,增强SCADA系统的免登录接口,支持数据字典项和登录日志的免登录查询与记录。调整Java编译设置,确保更好的开发体验。
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
namespace YY.Admin.Core.Services;
|
||||
|
||||
/// <summary>
|
||||
/// 通过 REST(SCADA)拉取用户并写入本地 jeecg_sys_user,供 Outbox 统一线路消费。
|
||||
/// </summary>
|
||||
public interface IJeecgUserMirrorPullHandler
|
||||
{
|
||||
Task<bool> ExecutePullAsync(CancellationToken cancellationToken = default);
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace YY.Admin.Core.Services;
|
||||
|
||||
/// <summary>
|
||||
/// 将「需拉取 Jeecg 用户镜像」写入 Outbox(断网不丢、联网续传),由 Services 侧协调器调用。
|
||||
/// </summary>
|
||||
public interface IJeecgUserMirrorPullOutbox
|
||||
{
|
||||
Task EnqueuePullAsync(string eventType, string? payloadJson, CancellationToken cancellationToken = default);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace YY.Admin.Core.Services;
|
||||
|
||||
public interface INetworkMonitor
|
||||
{
|
||||
bool IsOnline { get; }
|
||||
event Action<bool>? StatusChanged;
|
||||
Task StartAsync(CancellationToken cancellationToken = default);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace YY.Admin.Core.Services;
|
||||
|
||||
public interface ISignalRService
|
||||
{
|
||||
Task ConnectAsync(string token, CancellationToken cancellationToken = default);
|
||||
|
||||
/// <summary>
|
||||
/// 设备同步统一通道:STOMP 订阅 /topic/sync/jeecg-users(免密或带设备 Token),与 Outbox+REST 同属一条规范线路。
|
||||
/// </summary>
|
||||
Task ConnectUnifiedDeviceChannelAsync(CancellationToken cancellationToken = default);
|
||||
|
||||
Task SendDeviceStatusAsync(object status, CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user