mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-25 10:27:54 +00:00
Refactor Device Module
This commit is contained in:
@@ -1,23 +1,28 @@
|
||||
export interface GetDeviceDetailsInterface {
|
||||
result: {
|
||||
productId: string;
|
||||
};
|
||||
success: boolean;
|
||||
msg: string;
|
||||
}
|
||||
export interface GetDevicesByRoomIdInterface {
|
||||
success: boolean;
|
||||
msg: string;
|
||||
result: any;
|
||||
}
|
||||
|
||||
export interface GetDevicesByGroupIdInterface {
|
||||
success: boolean;
|
||||
msg: string;
|
||||
result: {
|
||||
count: number;
|
||||
data_list: [];
|
||||
};
|
||||
activeTime: number;
|
||||
assetId: string;
|
||||
category: string;
|
||||
categoryName: string;
|
||||
createTime: number;
|
||||
gatewayId: string;
|
||||
icon: string;
|
||||
id: string;
|
||||
ip: string;
|
||||
lat: string;
|
||||
localKey: string;
|
||||
lon: string;
|
||||
model: string;
|
||||
name: string;
|
||||
nodeId: string;
|
||||
online: boolean;
|
||||
productId?: string;
|
||||
productName?: string;
|
||||
sub: boolean;
|
||||
timeZone: string;
|
||||
updateTime: number;
|
||||
uuid: string;
|
||||
productType: string;
|
||||
productUuid: string;
|
||||
}
|
||||
|
||||
export interface addDeviceInRoomInterface {
|
||||
@@ -44,21 +49,13 @@ export interface GetDeviceDetailsFunctionsStatusInterface {
|
||||
success: boolean;
|
||||
msg: string;
|
||||
}
|
||||
export interface GetProductInterface {
|
||||
productType: string;
|
||||
productId: string;
|
||||
}
|
||||
|
||||
export interface DeviceInstructionResponse {
|
||||
success: boolean;
|
||||
result: {
|
||||
productId: string;
|
||||
productType: string;
|
||||
functions: {
|
||||
code: string;
|
||||
values: any[];
|
||||
dataType: string;
|
||||
}[];
|
||||
};
|
||||
msg: string;
|
||||
productUuid: string;
|
||||
productType: string;
|
||||
functions: {
|
||||
code: string;
|
||||
values: any[];
|
||||
dataType: string;
|
||||
}[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user