fix:修复初始化数据,修复小程序获取设备数据

V0.5.x
tangfudong 2024-03-09 01:24:40 +08:00
parent 246c6b4c37
commit 49aec5df04
2 changed files with 23 additions and 15 deletions

View File

@ -1003,10 +1003,10 @@
{ {
"identifier": "swing_modes", "identifier": "swing_modes",
"dataType": { "dataType": {
"type": "enum", "type": "bool",
"specs": { "specs": {
"off": "关", "0": "关",
"on": "开" "1": "开"
} }
}, },
"name": "扫风开关", "name": "扫风开关",
@ -1017,10 +1017,10 @@
"dataType": { "dataType": {
"type": "enum", "type": "enum",
"specs": { "specs": {
"heat": "制热", "0": "制热",
"off": "关闭", "1": "关闭",
"cool": "制冷", "2": "制冷",
"fan_only": "送风" "3": "送风"
} }
}, },
"name": "模式", "name": "模式",
@ -1031,13 +1031,26 @@
"dataType": { "dataType": {
"type": "enum", "type": "enum",
"specs": { "specs": {
"high": "高", "0": "高",
"medium": "中", "1": "中",
"low": "低" "2": "低"
} }
}, },
"name": "风模式", "name": "风模式",
"accessMode": "rw" "accessMode": "rw"
},
{
"identifier": "presets_modes",
"dataType": {
"type": "enum",
"specs": {
"0": "节能",
"1": "睡眠",
"2": "活动"
}
},
"name": "预设模式",
"accessMode": "rw"
} }
], ],
"services": [ "services": [

View File

@ -448,11 +448,6 @@ public class DeviceInfoDataImpl implements IDeviceInfoData, IJPACommData<DeviceI
return new Paging<>(ret.getTotalElements(), MapstructUtils.convert(ret.getContent(), DeviceInfo.class)); return new Paging<>(ret.getTotalElements(), MapstructUtils.convert(ret.getContent(), DeviceInfo.class));
} }
@Override
public List<DeviceInfo> findAllByCondition(DeviceInfo data) {
return Collections.emptyList();
}
@Override @Override
public DeviceInfo findOneByCondition(DeviceInfo data) { public DeviceInfo findOneByCondition(DeviceInfo data) {
return null; return null;