From f431666d1bbee5b1d266c5f43f8e08c20c748f20 Mon Sep 17 00:00:00 2001 From: maochaoying <925670706@qq.com> Date: Mon, 14 Aug 2023 19:36:37 +0800 Subject: [PATCH] mock --- src/mock/command.js | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/src/mock/command.js b/src/mock/command.js index 5cd7bb6..d5a41ca 100644 --- a/src/mock/command.js +++ b/src/mock/command.js @@ -36,3 +36,55 @@ export const shutdownJSON = { messageId: 'shutdown', delayms: 60 * 5, } + +// 开始消毒 +export const startDisinfection = (loglevel, roomVolume) => { + return { + command: 'startDisinfection', + messageId: 'startDisinfection', + loglevel, + roomVolume, + } +} + +// 停止消毒 +export const stopDisinfection = { + command: 'stopDisinfection', + messageId: 'stopDisinfection', +} + +// 获取当前设备的状态信息 +export const getState = { + command: 'getState', + messageId: 'getState', +} + +export const getAllUser = { + command: 'getAllUser', + messageId: 'getAllUser', +} + +export const getAllSetting = { + command: 'getAllSetting', + messageId: 'getAllSetting', +} + +export const getAllRecords = disinfection_id => { + return { + command: 'getAllRecords', + messageId: 'getAllRecords', + disinfection_id, + } +} + +export const setSettingVal = (settingName, settingVal) => { + return { + command: 'setSettingVal', + messageId: 'setSettingVal', + settingName, + settingVal, + } +} + +// RealtimeSensorDataReport +// 实时传感器信息上报