调整OneNET账号和设备路由
This commit is contained in:
parent
4c106ff9ab
commit
ca8857a3f2
@ -20,7 +20,7 @@ namespace JiShe.IoT
|
||||
typeof(AbpCachingStackExchangeRedisModule),
|
||||
typeof(AbpBlobStoringFileSystemModule),
|
||||
typeof(AbpDistributedLockingModule)
|
||||
//typeof(AbpBackgroundJobsHangfireModule)
|
||||
//typeof(AbpBackgroundJobsHangfireModule)
|
||||
)]
|
||||
public partial class IoTHttpApiHostModule : AbpModule
|
||||
{
|
||||
@ -80,7 +80,8 @@ namespace JiShe.IoT
|
||||
{
|
||||
var groupNames = EnumExtensions.GetEnumTypeValueNameList<SwaggerGroupEnum>();
|
||||
var excludeSwaggerGroups = configuration.GetSection("ExcludeSwaggerGroup").Get<List<string>>() ?? new List<string>();
|
||||
groupNames.ForEach(attr => {
|
||||
groupNames.ForEach(attr =>
|
||||
{
|
||||
|
||||
if (!excludeSwaggerGroups.Where(e => e == attr.Key).Any())
|
||||
{
|
||||
@ -99,8 +100,8 @@ namespace JiShe.IoT
|
||||
app.UseUnitOfWork();
|
||||
app.UseConfiguredEndpoints(endpoints =>
|
||||
{
|
||||
endpoints.MapHealthChecks("/health");
|
||||
|
||||
endpoints.MapHealthChecks("/health");
|
||||
|
||||
// endpoints.MapHangfireDashboard("/hangfire", new DashboardOptions()
|
||||
// {
|
||||
// Authorization = new[] { new CustomHangfireAuthorizeFilter() },
|
||||
|
||||
@ -29,6 +29,7 @@ namespace JiShe.IoT.DeviceAggregation.Dto
|
||||
/// <summary>
|
||||
/// 集中器在物联网平台中对应的产品Id
|
||||
/// </summary>
|
||||
[Required(ErrorMessage = "产品Id不能为空")]
|
||||
public string IoTPlatformProductId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
|
||||
@ -1,12 +1,6 @@
|
||||
using JiShe.IoT.DeviceAggregation.Dto;
|
||||
using JiShe.ServicePro.Core;
|
||||
using JiShe.ServicePro.DeviceManagement.DeivceInfos.Dto;
|
||||
using JiShe.ServicePro.DeviceManagement.Meters.Dto;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using JiShe.ServicePro.DeviceManagement.DeviceInfos;
|
||||
using Volo.Abp;
|
||||
|
||||
namespace JiShe.IoT.DeviceAggregation
|
||||
|
||||
@ -1,9 +1,8 @@
|
||||
using JiShe.IoT.DeviceAggregation.Dto;
|
||||
using JiShe.IoT.OneNETAggregation.Dto;
|
||||
using JiShe.ServicePro.Core;
|
||||
using JiShe.ServicePro.DeviceManagement.DeivceInfos;
|
||||
using JiShe.ServicePro.DeviceManagement.DeivceInfos.Dto;
|
||||
using JiShe.ServicePro.DeviceManagement.Meters.Dto;
|
||||
using JiShe.ServicePro.DeviceManagement.DeviceInfos;
|
||||
using JiShe.ServicePro.DeviceManagement.DeviceInfos.Dto;
|
||||
using JiShe.ServicePro.DeviceManagement.Permissions;
|
||||
using JiShe.ServicePro.OneNETManagement.OneNETDevices;
|
||||
using Mapster;
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
using JiShe.IoT.OneNETAggregation.Dto;
|
||||
using JiShe.ServicePro;
|
||||
using JiShe.ServicePro.Core;
|
||||
using JiShe.ServicePro.DeviceManagement.DeivceInfos;
|
||||
using JiShe.ServicePro.DeviceManagement.DeivceInfos.Dto;
|
||||
using JiShe.ServicePro.DeviceManagement.DeviceInfos;
|
||||
using JiShe.ServicePro.DeviceManagement.DeviceInfos.Dto;
|
||||
using JiShe.ServicePro.Encrypt;
|
||||
using JiShe.ServicePro.Enums;
|
||||
using JiShe.ServicePro.Kafka.Consts;
|
||||
|
||||
@ -2,7 +2,7 @@ using JiShe.ServicePro.BasicManagement.UserRefreshTokens;
|
||||
using JiShe.ServicePro.CTWingManagement.CTWingAccount;
|
||||
using JiShe.ServicePro.CTWingManagement.CTWingProduct;
|
||||
using JiShe.ServicePro.CTWingManagement.EntityFrameworkCore;
|
||||
using JiShe.ServicePro.DeviceManagement.DeivceInfos;
|
||||
using JiShe.ServicePro.DeviceManagement.DeviceInfos;
|
||||
using JiShe.ServicePro.DeviceManagement.EntityFrameworkCore;
|
||||
using JiShe.ServicePro.DynamicMenuManagement.EntityFrameworkCore;
|
||||
using JiShe.ServicePro.DynamicMenuManagement.Menus;
|
||||
|
||||
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore;
|
||||
namespace JiShe.IoT.Migrations
|
||||
{
|
||||
[DbContext(typeof(IoTDbContext))]
|
||||
[Migration("20250725034846_InitialCreate")]
|
||||
[Migration("20250725092548_InitialCreate")]
|
||||
partial class InitialCreate
|
||||
{
|
||||
/// <inheritdoc />
|
||||
@ -515,7 +515,7 @@ namespace JiShe.IoT.Migrations
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("JiShe.ServicePro.DeviceManagement.DeivceInfos.DeviceManagementInfo", b =>
|
||||
modelBuilder.Entity("JiShe.ServicePro.DeviceManagement.DeviceInfos.DeviceManagementInfo", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.HasColumnType("char(36)");
|
||||
@ -1202,7 +1202,7 @@ namespace JiShe.IoT.Migrations
|
||||
b.Property<Guid>("Id")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("Accesskey")
|
||||
b.Property<string>("AccountAccesskey")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
@ -949,7 +949,7 @@ namespace JiShe.IoT.Migrations
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
PhoneNumber = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "手机号码")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
Accesskey = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "账户通信密钥,平台可以重置密钥")
|
||||
AccountAccesskey = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: false, comment: "账户通信密钥,平台可以重置密钥")
|
||||
.Annotation("MySql:CharSet", "utf8mb4"),
|
||||
ProductCount = table.Column<int>(type: "int", nullable: false),
|
||||
ConcurrencyStamp = table.Column<string>(type: "varchar(40)", maxLength: 40, nullable: false)
|
||||
@ -512,7 +512,7 @@ namespace JiShe.IoT.Migrations
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("JiShe.ServicePro.DeviceManagement.DeivceInfos.DeviceManagementInfo", b =>
|
||||
modelBuilder.Entity("JiShe.ServicePro.DeviceManagement.DeviceInfos.DeviceManagementInfo", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.HasColumnType("char(36)");
|
||||
@ -1199,7 +1199,7 @@ namespace JiShe.IoT.Migrations
|
||||
b.Property<Guid>("Id")
|
||||
.HasColumnType("char(36)");
|
||||
|
||||
b.Property<string>("Accesskey")
|
||||
b.Property<string>("AccountAccesskey")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.HasColumnType("varchar(50)")
|
||||
|
||||
@ -1,26 +1,10 @@
|
||||
using JiShe.IoT.BusinessSystemAggregation;
|
||||
using JiShe.IoT.CommonServices;
|
||||
using JiShe.IoT.CommonServices.Dto;
|
||||
using JiShe.IoT.DeviceAggregation;
|
||||
using JiShe.IoT.DeviceAggregation.Dto;
|
||||
using JiShe.IoT.OneNETAggregation;
|
||||
using JiShe.IoT.OneNETAggregation.Dto;
|
||||
using JiShe.ServicePro;
|
||||
using JiShe.ServicePro.Commons;
|
||||
using JiShe.ServicePro.Core;
|
||||
using JiShe.ServicePro.DeviceManagement.DeivceInfos.Dto;
|
||||
using JiShe.ServicePro.DeviceManagement.Meters.Dto;
|
||||
using JiShe.ServicePro.OneNETManagement.OneNETProducts;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace JiShe.IoT.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备聚合服务
|
||||
/// 业务系统服务
|
||||
/// </summary>
|
||||
[Route("/Aggregation/Business")]
|
||||
public class BusinessSystemAggregationController : IoTController
|
||||
|
||||
@ -11,6 +11,9 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace JiShe.IoT.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
/// 通用服务
|
||||
/// </summary>
|
||||
[Route("Common")]
|
||||
public class CommonController:IoTController
|
||||
{
|
||||
|
||||
@ -1,20 +1,7 @@
|
||||
using JiShe.IoT.CommonServices;
|
||||
using JiShe.IoT.CommonServices.Dto;
|
||||
using JiShe.IoT.DeviceAggregation;
|
||||
using JiShe.IoT.DeviceAggregation;
|
||||
using JiShe.IoT.DeviceAggregation.Dto;
|
||||
using JiShe.IoT.OneNETAggregation;
|
||||
using JiShe.IoT.OneNETAggregation.Dto;
|
||||
using JiShe.ServicePro;
|
||||
using JiShe.ServicePro.Commons;
|
||||
using JiShe.ServicePro.Core;
|
||||
using JiShe.ServicePro.DeviceManagement.DeivceInfos.Dto;
|
||||
using JiShe.ServicePro.DeviceManagement.Meters.Dto;
|
||||
using JiShe.ServicePro.OneNETManagement.OneNETProducts;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using JiShe.ServicePro.DeviceManagement.DeviceInfos;
|
||||
|
||||
namespace JiShe.IoT.Controllers
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user