mirror of
https://github.com/kerwincui/FastBee.git
synced 2025-10-19 06:24:36 +08:00
开源版新增规则脚本
This commit is contained in:
@@ -163,6 +163,11 @@ public interface FastBeeConstant {
|
||||
/**固件版本key*/
|
||||
String FIRMWARE_VERSION = "device:firmware:";
|
||||
|
||||
/**
|
||||
* 设备信息
|
||||
*/
|
||||
String DEVICE_MSG = "device:msg:";
|
||||
|
||||
/**采集点变更记录缓存key*/
|
||||
String COLLECT_POINT_CHANGE = "collect:point:change:";
|
||||
/**属性下发回调*/
|
||||
|
@@ -81,4 +81,11 @@ public class RedisKeyBuilder {
|
||||
return FastBeeConstant.REDIS.DEVICE_MESSAGE_ID;
|
||||
}
|
||||
|
||||
/**
|
||||
* 缓存产品id,设备编号,协议编号
|
||||
*/
|
||||
public static String buildDeviceMsgCacheKey(String serialNumber){
|
||||
return FastBeeConstant.REDIS.DEVICE_MSG + serialNumber;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -0,0 +1,38 @@
|
||||
package com.fastbee.common.core.thingsModel;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 物模型值的项
|
||||
*
|
||||
* @author kerwincui
|
||||
* @date 2021-12-16
|
||||
*/
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
@Data
|
||||
public class SceneThingsModelItem
|
||||
{
|
||||
/** 物模型唯一标识符 */
|
||||
private String id;
|
||||
|
||||
/** 物模型值 */
|
||||
private String value;
|
||||
|
||||
/** 类型:1=属性, 2=功能,3=事件, 4=设备升级,5=设备上线,6=设备下线 ,*/
|
||||
private int type;
|
||||
|
||||
/** 脚本ID */
|
||||
private String stripId;
|
||||
|
||||
/** 场景ID*/
|
||||
private Long sceneId;
|
||||
|
||||
/** 产品ID */
|
||||
private Long productId;
|
||||
|
||||
/** 设备编号 */
|
||||
private String DeviceNumber;
|
||||
}
|
Reference in New Issue
Block a user