feat(M08-D): 补设备运营后台
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user