2025-06-12 17:56:24 +08:00
|
|
|
|
using JiShe.IoT.Jobs.ToMysql;
|
|
|
|
|
|
using JiShe.IoT.Jobs.ToRedis;
|
2025-06-24 17:09:29 +08:00
|
|
|
|
using JiShe.ServicePro.CTWingManagement;
|
2025-06-05 11:49:13 +08:00
|
|
|
|
using JiShe.ServicePro.DeviceManagement;
|
2025-05-27 14:02:24 +08:00
|
|
|
|
using JiShe.ServicePro.DynamicMenuManagement;
|
2025-05-27 22:53:46 +08:00
|
|
|
|
using JiShe.ServicePro.FileManagement;
|
2025-05-27 16:16:07 +08:00
|
|
|
|
using JiShe.ServicePro.FreeRedisProvider;
|
|
|
|
|
|
using JiShe.ServicePro.FreeSqlProvider;
|
2025-06-04 17:09:21 +08:00
|
|
|
|
using JiShe.ServicePro.IoTDBManagement;
|
2025-05-27 14:02:24 +08:00
|
|
|
|
using JiShe.ServicePro.TemplateManagement;
|
2025-06-12 17:55:19 +08:00
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
2025-05-27 14:02:24 +08:00
|
|
|
|
|
2025-05-27 14:27:50 +08:00
|
|
|
|
namespace JiShe.IoT
|
2025-05-27 14:02:24 +08:00
|
|
|
|
{
|
|
|
|
|
|
[DependsOn(
|
2025-05-27 14:27:50 +08:00
|
|
|
|
typeof(IoTDomainModule),
|
|
|
|
|
|
typeof(IoTApplicationContractsModule),
|
2025-05-27 14:02:24 +08:00
|
|
|
|
typeof(BasicManagementApplicationModule),
|
|
|
|
|
|
typeof(NotificationManagementApplicationModule),
|
|
|
|
|
|
typeof(DataDictionaryManagementApplicationModule),
|
|
|
|
|
|
typeof(LanguageManagementApplicationModule),
|
|
|
|
|
|
typeof(TemplateManagementApplicationModule),
|
|
|
|
|
|
typeof(DynamicMenuManagementApplicationModule),
|
2025-05-27 22:53:46 +08:00
|
|
|
|
typeof(FileManagementApplicationModule),
|
2025-06-04 17:09:21 +08:00
|
|
|
|
typeof(IoTDBManagementApplicationModule),
|
2025-06-05 11:49:13 +08:00
|
|
|
|
typeof(ServiceProFreeRedisProviderModule),
|
2025-06-12 17:55:19 +08:00
|
|
|
|
typeof(ServiceProFreeSqlProviderModule),
|
2025-06-24 17:09:29 +08:00
|
|
|
|
typeof(CTWingManagementApplicationModule),
|
2025-06-05 11:49:13 +08:00
|
|
|
|
typeof(DeviceManagementApplicationModule)
|
2025-05-27 14:02:24 +08:00
|
|
|
|
)]
|
2025-05-27 14:27:50 +08:00
|
|
|
|
public class IoTApplicationModule : AbpModule
|
2025-05-27 14:02:24 +08:00
|
|
|
|
{
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
|
|
|
|
{
|
|
|
|
|
|
Configure<AbpAutoMapperOptions>(options =>
|
|
|
|
|
|
{
|
2025-05-27 14:27:50 +08:00
|
|
|
|
options.AddMaps<IoTApplicationModule>();
|
2025-05-27 14:02:24 +08:00
|
|
|
|
});
|
2025-06-12 17:55:19 +08:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public override void PostConfigureServices(ServiceConfigurationContext context)
|
|
|
|
|
|
{
|
|
|
|
|
|
// <20><>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD>
|
2025-06-24 17:09:29 +08:00
|
|
|
|
//ConfigureBackgroundJob(context);
|
2025-06-12 17:55:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private static void ConfigureBackgroundJob(ServiceConfigurationContext context)
|
|
|
|
|
|
{
|
|
|
|
|
|
context.Services.AddHostedService<BathSyncFocusDataToMysqlJob>();
|
|
|
|
|
|
context.Services.AddHostedService<BathSyncAmmeterDataToMysqlJob>();
|
|
|
|
|
|
context.Services.AddHostedService<BathSyncWatermeterDataToMysqlJob>();
|
|
|
|
|
|
context.Services.AddHostedService<CacheDeviceDataToRedisJob>();
|
|
|
|
|
|
context.Services.AddHostedService<CacheFocusDataToRedisJob>();
|
2025-05-27 14:02:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|