From fc0d6a8ae1c2a06b6d92ac16d24d7b5015cbd631 Mon Sep 17 00:00:00 2001
From: ChenYi <296215406@outlook.com>
Date: Wed, 24 Dec 2025 17:20:56 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E8=81=9A=E5=90=88=E6=9C=8D?=
=?UTF-8?q?=E5=8A=A1=E6=96=B0=E5=A2=9E=E5=B9=B3=E5=8F=B0=E4=BA=A7=E5=93=81?=
=?UTF-8?q?=E7=89=A9=E6=A8=A1=E5=9E=8B=E4=BB=A5=E5=8F=8A=E4=BA=A7=E5=93=81?=
=?UTF-8?q?=E6=A0=87=E5=87=86=E7=89=A9=E6=A8=A1=E5=9E=8B=E5=B1=9E=E6=80=A7?=
=?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Dto/DevicePropertyValueForApiInput.cs | 19 ++++
.../IDeviceAggregationService.cs | 7 ++
...dateIoTPlatformProductPropertyInfoInput.cs | 28 ++++++
.../IIoTPlatformAggregationService.cs | 8 ++
.../DeviceAggregationService.cs | 94 +++++++++++++++++++
.../IoTPlatformAggregationService.cs | 68 +++++++++++++-
.../DeviceAggregationController.cs | 14 ++-
.../IoTPlatformAggregationController.cs | 12 +++
8 files changed, 248 insertions(+), 2 deletions(-)
create mode 100644 src/JiShe.IoT.Application.Contracts/DeviceAggregation/Dto/DevicePropertyValueForApiInput.cs
create mode 100644 src/JiShe.IoT.Application.Contracts/IoTPlatformAggregation/Dto/UpdateIoTPlatformProductPropertyInfoInput.cs
diff --git a/src/JiShe.IoT.Application.Contracts/DeviceAggregation/Dto/DevicePropertyValueForApiInput.cs b/src/JiShe.IoT.Application.Contracts/DeviceAggregation/Dto/DevicePropertyValueForApiInput.cs
new file mode 100644
index 0000000..f6b3b18
--- /dev/null
+++ b/src/JiShe.IoT.Application.Contracts/DeviceAggregation/Dto/DevicePropertyValueForApiInput.cs
@@ -0,0 +1,19 @@
+using JiShe.ServicePro.Core;
+using JiShe.ServicePro.Enums;
+using System.ComponentModel.DataAnnotations;
+
+namespace JiShe.IoT.DeviceAggregation
+{
+
+ ///
+ /// 设备属性抄读
+ ///
+ public class DevicePropertyValueForApiInput : IdInput
+ {
+ ///
+ /// 设备在物联网平台中属性标识符列表
+ ///
+ [Required(ErrorMessage = "属性标识符不能为空")]
+ public List PropertyList { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/src/JiShe.IoT.Application.Contracts/DeviceAggregation/IDeviceAggregationService.cs b/src/JiShe.IoT.Application.Contracts/DeviceAggregation/IDeviceAggregationService.cs
index 14680c7..87ef6cf 100644
--- a/src/JiShe.IoT.Application.Contracts/DeviceAggregation/IDeviceAggregationService.cs
+++ b/src/JiShe.IoT.Application.Contracts/DeviceAggregation/IDeviceAggregationService.cs
@@ -46,6 +46,13 @@ namespace JiShe.IoT.DeviceAggregation
///
Task DeviceCommandForApiAsync(DeviceCommandForApiInput input);
+ ///
+ /// 获取设备属性最新值
+ ///
+ ///
+ ///
+ Task> GetDevicePropertyValueForApiAsync(DevicePropertyValueForApiInput input);
+
///
/// 删除设备信息
///
diff --git a/src/JiShe.IoT.Application.Contracts/IoTPlatformAggregation/Dto/UpdateIoTPlatformProductPropertyInfoInput.cs b/src/JiShe.IoT.Application.Contracts/IoTPlatformAggregation/Dto/UpdateIoTPlatformProductPropertyInfoInput.cs
new file mode 100644
index 0000000..2f09bf4
--- /dev/null
+++ b/src/JiShe.IoT.Application.Contracts/IoTPlatformAggregation/Dto/UpdateIoTPlatformProductPropertyInfoInput.cs
@@ -0,0 +1,28 @@
+using JiShe.ServicePro.Enums;
+using System;
+using System.Collections.Generic;
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace JiShe.IoT.IoTPlatformAggregation.Dto
+{
+ ///
+ /// 平台产品属性更新输入
+ ///
+ public class UpdateIoTPlatformProductPropertyInfoInput
+ {
+ ///
+ /// 物联网平台类型,默认没有指定
+ ///
+ [Required]
+ public IoTPlatformTypeEnum IoTPlatformType { get; set; }
+
+ ///
+ /// 物联网平台中对应的产品Id
+ ///
+ [Required]
+ public string IoTPlatformProductId { get; set; }
+ }
+}
diff --git a/src/JiShe.IoT.Application.Contracts/IoTPlatformAggregation/IIoTPlatformAggregationService.cs b/src/JiShe.IoT.Application.Contracts/IoTPlatformAggregation/IIoTPlatformAggregationService.cs
index b5abc45..60c46e3 100644
--- a/src/JiShe.IoT.Application.Contracts/IoTPlatformAggregation/IIoTPlatformAggregationService.cs
+++ b/src/JiShe.IoT.Application.Contracts/IoTPlatformAggregation/IIoTPlatformAggregationService.cs
@@ -37,5 +37,13 @@ namespace JiShe.IoT.IoTPlatformAggregation
///
Task> GetIoTPlatformProductPropertyInfoAsync(IoTPlatformProductPropertyInfoInput input
);
+
+ ///
+ /// 更新平台产品物模型属性信息
+ ///
+ ///
+ ///
+ Task