From 329e3b70f7c43e5871a4b0ed3def0a1ec200e5cd Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Sun, 7 Jun 2026 13:31:24 +0800 Subject: [PATCH] =?UTF-8?q?fix(api):=20=E5=AF=B9=E9=BD=90=20iot=20?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E5=89=8D=E7=AB=AF=20API=20=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=B8=8E=E5=90=8E=E7=AB=AF=20VO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 统一 createTime 类型 Date→string(10个文件) --- apps/web-antd/src/api/iot/alert/config/index.ts | 2 +- apps/web-antd/src/api/iot/alert/record/index.ts | 2 +- apps/web-antd/src/api/iot/device/device/index.ts | 2 +- apps/web-antd/src/api/iot/ota/firmware/index.ts | 2 +- apps/web-antd/src/api/iot/ota/task/index.ts | 2 +- apps/web-antd/src/api/iot/product/category/index.ts | 2 +- apps/web-antd/src/api/iot/product/product/index.ts | 2 +- apps/web-antd/src/api/iot/rule/data/rule/index.ts | 2 +- apps/web-antd/src/api/iot/rule/data/sink/index.ts | 2 +- apps/web-antd/src/api/iot/rule/scene/index.ts | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/apps/web-antd/src/api/iot/alert/config/index.ts b/apps/web-antd/src/api/iot/alert/config/index.ts index a1d3bdfcc..777eed378 100644 --- a/apps/web-antd/src/api/iot/alert/config/index.ts +++ b/apps/web-antd/src/api/iot/alert/config/index.ts @@ -17,7 +17,7 @@ export namespace AlertConfigApi { smsTemplateCode?: string; mailTemplateCode?: string; notifyTemplateCode?: string; - createTime?: Date; + createTime?: string; } } diff --git a/apps/web-antd/src/api/iot/alert/record/index.ts b/apps/web-antd/src/api/iot/alert/record/index.ts index fea6e17a4..87d79e58c 100644 --- a/apps/web-antd/src/api/iot/alert/record/index.ts +++ b/apps/web-antd/src/api/iot/alert/record/index.ts @@ -14,7 +14,7 @@ export namespace AlertRecordApi { deviceMessage?: any; processStatus?: boolean; processRemark?: string; - createTime?: Date; + createTime?: string; } } diff --git a/apps/web-antd/src/api/iot/device/device/index.ts b/apps/web-antd/src/api/iot/device/device/index.ts index a55b017d5..ef0291867 100644 --- a/apps/web-antd/src/api/iot/device/device/index.ts +++ b/apps/web-antd/src/api/iot/device/device/index.ts @@ -24,7 +24,7 @@ export namespace IotDeviceApi { config?: string; // 设备配置 latitude?: number; // 设备位置的纬度 longitude?: number; // 设备位置的经度 - createTime?: Date; // 创建时间 + createTime?: string; // 创建时间 } /** 设备更新分组 Request VO */ diff --git a/apps/web-antd/src/api/iot/ota/firmware/index.ts b/apps/web-antd/src/api/iot/ota/firmware/index.ts index 7fd7469ca..a4c94c9a0 100644 --- a/apps/web-antd/src/api/iot/ota/firmware/index.ts +++ b/apps/web-antd/src/api/iot/ota/firmware/index.ts @@ -15,7 +15,7 @@ export namespace IoTOtaFirmwareApi { fileSize?: number; fileDigestAlgorithm?: string; fileDigestValue?: string; - createTime?: Date; + createTime?: string; } } diff --git a/apps/web-antd/src/api/iot/ota/task/index.ts b/apps/web-antd/src/api/iot/ota/task/index.ts index 7f4f5d6fb..6b3ec081b 100644 --- a/apps/web-antd/src/api/iot/ota/task/index.ts +++ b/apps/web-antd/src/api/iot/ota/task/index.ts @@ -14,7 +14,7 @@ export namespace IoTOtaTaskApi { deviceIds?: number[]; deviceTotalCount?: number; deviceSuccessCount?: number; - createTime?: Date; + createTime?: string; } } diff --git a/apps/web-antd/src/api/iot/product/category/index.ts b/apps/web-antd/src/api/iot/product/category/index.ts index 45ce4ccdb..8c02f7930 100644 --- a/apps/web-antd/src/api/iot/product/category/index.ts +++ b/apps/web-antd/src/api/iot/product/category/index.ts @@ -10,7 +10,7 @@ export namespace IotProductCategoryApi { sort?: number; // 分类排序 status?: number; // 分类状态 description?: string; // 分类描述 - createTime?: Date; // 创建时间 + createTime?: string; // 创建时间 } } diff --git a/apps/web-antd/src/api/iot/product/product/index.ts b/apps/web-antd/src/api/iot/product/product/index.ts index 9b4a88ed6..0e99b3ce1 100644 --- a/apps/web-antd/src/api/iot/product/product/index.ts +++ b/apps/web-antd/src/api/iot/product/product/index.ts @@ -22,7 +22,7 @@ export namespace IotProductApi { serializeType?: string; // 序列化类型 registerEnabled?: boolean; // 是否开启动态注册 deviceCount?: number; // 设备数量 - createTime?: Date; // 创建时间 + createTime?: string; // 创建时间 } } diff --git a/apps/web-antd/src/api/iot/rule/data/rule/index.ts b/apps/web-antd/src/api/iot/rule/data/rule/index.ts index e9ba120b2..985302de9 100644 --- a/apps/web-antd/src/api/iot/rule/data/rule/index.ts +++ b/apps/web-antd/src/api/iot/rule/data/rule/index.ts @@ -11,7 +11,7 @@ export namespace DataRuleApi { status?: number; sourceConfigs?: any[]; sinkIds?: number[]; - createTime?: Date; + createTime?: string; } } diff --git a/apps/web-antd/src/api/iot/rule/data/sink/index.ts b/apps/web-antd/src/api/iot/rule/data/sink/index.ts index 3c26df91d..8c002ec5e 100644 --- a/apps/web-antd/src/api/iot/rule/data/sink/index.ts +++ b/apps/web-antd/src/api/iot/rule/data/sink/index.ts @@ -25,7 +25,7 @@ export namespace DataSinkApi { | RocketMQConfig | TcpConfig | WebSocketConfig; - createTime?: Date; + createTime?: string; } /** HTTP 配置 */ diff --git a/apps/web-antd/src/api/iot/rule/scene/index.ts b/apps/web-antd/src/api/iot/rule/scene/index.ts index 23549f1ad..f3a2199b9 100644 --- a/apps/web-antd/src/api/iot/rule/scene/index.ts +++ b/apps/web-antd/src/api/iot/rule/scene/index.ts @@ -12,7 +12,7 @@ export namespace RuleSceneApi { triggers?: Trigger[]; actions?: Action[]; lastTriggeredTime?: Date; - createTime?: Date; + createTime?: string; } /** 场景联动规则的触发器 */