mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-03-10 22:01:43 +00:00
65 lines
1.1 KiB
TypeScript
65 lines
1.1 KiB
TypeScript
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: [];
|
|
};
|
|
}
|
|
|
|
export interface addDeviceInRoomInterface {
|
|
success: boolean;
|
|
msg: string;
|
|
result: boolean;
|
|
}
|
|
|
|
export interface controlDeviceInterface {
|
|
success: boolean;
|
|
result: boolean;
|
|
msg: string;
|
|
}
|
|
export interface GetDeviceDetailsFunctionsInterface {
|
|
result: {
|
|
category: string;
|
|
functions: [];
|
|
};
|
|
success: boolean;
|
|
msg: string;
|
|
}
|
|
export interface GetDeviceDetailsFunctionsStatusInterface {
|
|
result: [{ id: string; status: [] }];
|
|
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;
|
|
}
|