【代码评审】IoT:产品、设备、物模型的代码

This commit is contained in:
YunaiV
2024-10-01 19:39:12 +08:00
parent 5a456a95e7
commit 6a35ca7290
10 changed files with 25 additions and 38 deletions

View File

@ -7,7 +7,7 @@ import lombok.Getter;
import java.util.Arrays;
/**
* IOT 产品功能类型枚举类
* IOT 产品功能(物模型)类型枚举类
*
* @author ahh
*/
@ -15,17 +15,8 @@ import java.util.Arrays;
@Getter
public enum IotProductFunctionTypeEnum implements IntArrayValuable {
/**
* 属性
*/
PROPERTY(1, "属性"),
/**
* 服务
*/
SERVICE(2, "服务"),
/**
* 事件
*/
EVENT(3, "事件");
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(IotProductFunctionTypeEnum::getType).toArray();