更新依赖

This commit is contained in:
ChenYi 2025-07-07 13:36:31 +08:00
parent 87a21a4df0
commit d50ae45c10
3 changed files with 19 additions and 2 deletions

@ -1 +1 @@
Subproject commit e6687c0b95ccd58c9f86e97d172f2858780efbee
Subproject commit 07a83224a090c8ca0d2c3058507fd6e738846fac

View File

@ -124,7 +124,7 @@ public partial class IoTHttpApiHostModule
context.Services
.AddDataProtection()
.PersistKeysToStackFreeRedis("JiSheIoTAdmin-Protection-Keys");
.PersistKeysToStackFreeRedis($"{RedisConst.CachePersistKeys}JiSheIoTAdmin-Protection-Keys");
}
/// <summary>

View File

@ -1,4 +1,5 @@
using JiShe.ServicePro.BasicManagement.UserRefreshTokens;
using JiShe.ServicePro.CTWingManagement.EntityFrameworkCore;
using JiShe.ServicePro.DeviceManagement.EntityFrameworkCore;
using JiShe.ServicePro.DeviceManagement.Focuses;
using JiShe.ServicePro.DeviceManagement.Meters;
@ -6,6 +7,7 @@ using JiShe.ServicePro.DynamicMenuManagement.EntityFrameworkCore;
using JiShe.ServicePro.DynamicMenuManagement.Menus;
using JiShe.ServicePro.FileManagement.EntityFrameworkCore;
using JiShe.ServicePro.FileManagement.Files;
using JiShe.ServicePro.OneNETManagement.EntityFrameworkCore;
using JiShe.ServicePro.TemplateManagement.EntityFrameworkCore;
using JiShe.ServicePro.TemplateManagement.TextTemplates;
@ -20,6 +22,8 @@ namespace JiShe.IoT.EntityFrameworkCore
ITemplateManagementDbContext,
IDynamicMenuManagementDbContext,
IFileManagementDbContext,
ICTWingManagementDbContext,
IOneNETManagementDbContext,
IDeviceManagementDbContext
{
public DbSet<IdentityUser> Users { get; set; }
@ -61,6 +65,12 @@ namespace JiShe.IoT.EntityFrameworkCore
public DbSet<FocusInfo> FocusInfo { get; set; }
public DbSet<MeterInfo> MeterInfo { get; set; }
// CTWing管理
// OneNET管理
public IoTDbContext(DbContextOptions<IoTDbContext> options)
: base(options)
{
@ -96,6 +106,13 @@ namespace JiShe.IoT.EntityFrameworkCore
// 设备管理
builder.ConfigureDeviceManagement();
// CTWing管理
builder.ConfigureCTWingManagement();
// OneNET管理
builder.ConfigureOneNETManagement();
}