!764 针对 iothome 页面上次codereview的优化

Merge pull request !764 from alwayssuper/feature/iot
This commit is contained in:
芋道源码
2025-06-14 07:00:25 +00:00
committed by Gitee
8 changed files with 775 additions and 457 deletions

View File

@@ -16,10 +16,16 @@ export interface IotStatisticsSummaryRespVO {
productCategoryDeviceCounts: Record<string, number>
}
/** 时间戳-数值的键值对类型 */
interface TimeValueItem {
[key: string]: number
}
/** IoT 消息统计数据类型 */
export interface IotStatisticsDeviceMessageSummaryRespVO {
upstreamCounts: Record<number, number>
downstreamCounts: Record<number, number>
statType: number
upstreamCounts: TimeValueItem[]
downstreamCounts: TimeValueItem[]
}
// IoT 数据统计 API