feat(M08-D): 补设备运营后台

This commit is contained in:
Codex
2026-08-10 12:27:05 +08:00
parent 7c5f55cccf
commit 5c9fd697f3
6 changed files with 304 additions and 2 deletions
+73
View File
@@ -364,6 +364,79 @@ export interface MemberDetail extends MemberCard {
recentLedger: MemberLedgerEntry[];
}
export type DeviceType = 'CONTROL_BOX' | 'SUB_LOCK' | 'SMART_SOCKET';
export interface DeviceAsset {
id: string;
storeId: string;
roomId: string | null;
deviceId: string;
imei: string;
iccid: string | null;
deviceType: DeviceType;
model: string;
firmwareVersion: string;
status: 'ONLINE' | 'OFFLINE' | 'FAULT';
signalStrength: number | null;
capabilities: string[];
stateSnapshot: Record<string, unknown>;
lastSeenAt: string | null;
lastHeartbeatAt: string | null;
maintenanceStatus: string;
}
export interface DeviceChannel {
id: string;
assetId: string;
roomId: string;
channelCode: string;
purpose: string;
targetKey: string;
enabled: boolean;
}
export interface DeviceLink {
id: string;
parentAssetId: string;
childAssetId: string;
roomId: string;
linkType: string;
subId: string;
subtype: string;
status: string;
}
export interface DeviceAlert {
id: string;
assetId: string;
roomId: string | null;
alertType: string;
severity: string;
status: string;
summary: string;
firstSeenAt: string;
lastSeenAt: string;
}
export interface DeviceMaintenance {
id: string;
assetId: string;
roomId: string | null;
recordType: 'INSPECTION' | 'REPAIR' | 'REPLACEMENT';
status: 'OPEN' | 'RESOLVED';
description: string;
createdAt: string;
resolvedAt: string | null;
}
export interface DeviceTopology {
assets: DeviceAsset[];
channels: DeviceChannel[];
links: DeviceLink[];
openAlerts: DeviceAlert[];
maintenance: DeviceMaintenance[];
}
export interface CleaningTask {
id: string;
taskNo: string;